-
Notifications
You must be signed in to change notification settings - Fork 33
/
Gruntfile.js
37 lines (33 loc) · 981 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
module.exports = function (grunt) {
// Project config
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
build: {
src: [
'src/Heatmap.js',
'src/component/dataConverter.js',
'src/component/TileUrlsGenerator.js',
'src/component/Canvas.js'
],
dest: 'build/heatmap.js'
}
},
uglify: {
build: {
src: 'build/heatmap.js',
dest: 'build/heatmap.min.js'
}
},
watch: {
files: 'src/**/*.js',
tasks: 'default'
}
});
// Load the plugin
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task
grunt.registerTask('default', ['concat', 'uglify', 'watch']);
};