From d1da4bc7467d03c2d445802d5569e81d4f9d5b73 Mon Sep 17 00:00:00 2001 From: Eric Theise Date: Thu, 29 Jul 2021 11:52:09 -0700 Subject: [PATCH] Addresses #493; rearranged Gruntfile to keep .md files at root and not duplicate package.json in /dist. Apologies for spurious whitespace changes, my IDE chomps trailing spaces on save. --- Gruntfile.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b8b6f6e86..a292a0416 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -33,7 +33,7 @@ module.exports = function(grunt) { // ensure that jshint keeps processing after an error force: true, esversion: 6 - + } }, watch: { @@ -47,47 +47,47 @@ module.exports = function(grunt) { expand: true, cwd: 'node_modules/leaflet/dist/', flatten: true, - filter: 'isFile', - src: ['leaflet.css','leaflet-src.js'], + filter: 'isFile', + src: ['leaflet.css','leaflet-src.js'], dest: 'dist/' }, { expand: true, cwd: 'node_modules/proj4/dist/', flatten: true, - filter: 'isFile', - src: ['proj4-src.js'], + filter: 'isFile', + src: ['proj4-src.js'], dest: 'dist/' }, { expand: true, cwd: 'node_modules/proj4leaflet/src/', flatten: true, - filter: 'isFile', - src: ['proj4leaflet.js'], + filter: 'isFile', + src: ['proj4leaflet.js'], dest: 'dist/' }, { expand: true, cwd: 'node_modules/@runette/leaflet-fullscreen/dist/', flatten: true, - filter: 'isFile', - src: ['Leaflet.fullscreen.js','leaflet.fullscreen.css'], + filter: 'isFile', + src: ['Leaflet.fullscreen.js','leaflet.fullscreen.css'], dest: 'dist/' }, { expand: true, cwd: 'src', flatten: true, - filter: 'isFile', - src: ['*.js','*.css','*.md','index.html','package.json'], + filter: 'isFile', + src: ['*.js','*.css','*.md','index.html','package.json'], dest: 'dist/' }, { expand: true, flatten: true, - filter: 'isFile', - src: ['*.md','index.html','package.json'], + filter: 'isFile', + src: ['index.html'], dest: 'dist/' } ], @@ -128,7 +128,7 @@ module.exports = function(grunt) { } } }, - images: { + images: { // if you pass images through the process function, it corrupts them, // so you have to do this in a separate grunt 'target' ('main' being the // default one, I believe). @@ -137,8 +137,8 @@ module.exports = function(grunt) { expand: true, cwd: 'node_modules/leaflet/dist/images/', flatten: true, - filter: 'isFile', - src: ['layers.png','layers-2x.png'], + filter: 'isFile', + src: ['layers.png','layers-2x.png'], dest: 'dist/images/' } ] @@ -175,4 +175,4 @@ module.exports = function(grunt) { grunt.registerTask('default', ['clean:dist', 'copy', 'jshint', 'rollup', 'uglify']); grunt.registerTask('build', ['rollup']); -}; \ No newline at end of file +};