Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
independent fork ; update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Istador committed Nov 21, 2019
1 parent 5477189 commit 9138d27
Show file tree
Hide file tree
Showing 9 changed files with 2,177 additions and 546 deletions.
4 changes: 4 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"laxbreak": true,
"laxcomma": false
}
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/examples/
/src/
/.jshintrc
/Gruntfile.js
/index.html
66 changes: 44 additions & 22 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

module.exports = function(grunt) {

grunt.util.linefeed = '\n';

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-banner');

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand All @@ -32,56 +35,73 @@ grunt.initConfig({
},
clean: {
dist: {
src: ['dist/*']
}
src: ['dist/*'],
},
},
jshint: {
options: {
jshintrc: true,
globals: {
console: true,
module: true,
},
},
files: ['src/*.js']
files: ['src/*.js'],
},
concat: {
//TODO cut out SearchMarker
options: {
banner: '<%= meta.banner %>'
banner: '<%= meta.banner %>',
},
dist: {
files: {
'dist/leaflet-panel-layers.src.js': ['src/leaflet-panel-layers.js'],
'dist/leaflet-panel-layers.src.css': ['src/leaflet-panel-layers.css']
}
}
'dist/leaflet-panel-layers.src.css': ['src/leaflet-panel-layers.css'],
},
},
},
uglify: {
options: {
banner: '<%= meta.banner %>'
},
dist: {
files: {
'dist/leaflet-panel-layers.min.js': ['dist/leaflet-panel-layers.src.js']
}
}
'dist/leaflet-panel-layers.min.js': ['dist/leaflet-panel-layers.src.js'],
},
},
},
cssmin: {
combine: {
files: {
'dist/leaflet-panel-layers.min.css': ['src/leaflet-panel-layers.css']
}
},
options: {
banner: '<%= meta.banner %>'
'dist/leaflet-panel-layers.min.css': ['src/leaflet-panel-layers.css'],
},
},
minify: {
expand: true,
cwd: 'dist/',
files: {
'dist/leaflet-panel-layers.min.css': ['src/leaflet-panel-layers.css']
}
}
'dist/leaflet-panel-layers.min.css': ['src/leaflet-panel-layers.css'],
},
},
},
usebanner: {
options: {
position: 'top',
linebreak: false,
},
css: {
options: {
banner: '<%= meta.banner %>',
},
files: {
src: 'dist/leaflet-panel-layers.min.css',
},
},
js: {
options: {
banner: '<%= meta.banner %>',
},
files: {
src: 'dist/leaflet-panel-layers.min.js',
},
},
},
watch: {
dist: {
Expand All @@ -96,8 +116,10 @@ grunt.registerTask('default', [
'clean',
'concat',
'cssmin',
'usebanner:css',
'jshint',
'uglify'
'uglify',
'usebanner:js',
]);

};
7 changes: 3 additions & 4 deletions dist/leaflet-panel-layers.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9138d27

Please sign in to comment.