forked from ismyrnow/leaflet-groupedlayercontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
39 lines (35 loc) · 954 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* eslint object-curly-newline: [2, "always"] */
module.exports = function (grunt) {
var banner = '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n';
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: banner,
preserveComments: 'some',
sourceMap: true
},
dist: {
files: {
'dist/leaflet.groupedlayercontrol.min.js': 'src/leaflet.groupedlayercontrol.js'
}
}
},
cssmin: {
dist: {
files: {
'dist/leaflet.groupedlayercontrol.min.css': 'src/leaflet.groupedlayercontrol.css'
}
}
},
bump: {
options: {
files: ['bower.json', 'package.json'],
commitFiles: ['bower.json', 'commit.json'],
push: false
}
}
});
grunt.registerTask('default', ['uglify', 'cssmin']);
};