Skip to content

Commit

Permalink
Addresses #493; rearranged Gruntfile to keep .md files at root and no…
Browse files Browse the repository at this point in the history
…t duplicate package.json in /dist. Apologies for spurious whitespace changes, my IDE chomps trailing spaces on save.
  • Loading branch information
erictheise committed Jul 29, 2021
1 parent 625f5e9 commit d1da4bc
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function(grunt) {
// ensure that jshint keeps processing after an error
force: true,
esversion: 6

}
},
watch: {
Expand All @@ -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/'
}
],
Expand Down Expand Up @@ -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).
Expand All @@ -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/'
}
]
Expand Down Expand Up @@ -175,4 +175,4 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['clean:dist', 'copy', 'jshint', 'rollup', 'uglify']);
grunt.registerTask('build', ['rollup']);

};
};

0 comments on commit d1da4bc

Please sign in to comment.