forked from lennardv2/Leaflet.awesome-markers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
41 lines (36 loc) · 867 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
40
41
'use strict';
var packagejson = require('./package.json');
var config = {
pkg: packagejson,
src: 'src',
dist: 'dist'
};
module.exports = function (grunt) {
// Configuration
grunt.initConfig({
config: config,
pkg: config.pkg,
uglify: {
options: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */'
},
build: {
src: '<%= config.dist %>/<%= pkg.name %>.js',
dest: '<%= config.dist %>/<%= pkg.name %>.min.js'
}
},
copy: {
main: {
src: ['<%= config.src %>/<%= pkg.name %>.js'],
dest: '<%= config.dist %>/<%= pkg.name %>.js'
}
}
});
grunt.registerTask('default', [
'copy',
'uglify'
]);
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
};