forked from vendji/analysjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
41 lines (36 loc) · 1.14 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
41
module.exports = function(grunt) {
var sources = [
'src/lib.js',
'src/plugin.js'
];
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
clean : [ 'build/*.*' ],
jshint : {
sources : sources
},
concat : {
dist : {
src : sources,
dest : 'build/analysjs.js'
}
},
uglify : {
dist : {
options : {
sourceMap : 'build/analysjs.js.map',
sourceMappingURL : 'https://raw.github.com/Quimbee/analysjs/master/build/analysjs.js.map'
},
src : 'build/analysjs.js',
dest : 'build/analysjs.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
//grunt.registerTask('test', ['jshint', 'jasmine']);
grunt.registerTask('default', ['clean', 'jshint', 'concat', 'uglify']);
};