-
Notifications
You must be signed in to change notification settings - Fork 34
/
Gruntfile.js
executable file
·40 lines (34 loc) · 1.13 KB
/
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
40
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
ghPagesDir: '../Leaflet.MultiOptionsPolyline@gh-pages/',
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name + " v" + pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
},
dist: {
files: {
'<%= pkg.name %>.min.js': ['<%= pkg.name %>.js']
}
}
},
jshint: {
files: ['Leaflet.MultiOptionsPolyline.js', 'demo/js/*.js'],
options: {
}
},
copy: {
"gh-pages": {
files: [
{expand: true, src: ['demo/**'], dest: '<%= ghPagesDir %>'},
{expand: true, src: ['Leaflet.MultiOptionsPolyline.js'], dest: '<%= ghPagesDir %>'}
]
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('default', ['jshint', 'uglify']);
};