forked from jquery-archive/PEP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
47 lines (45 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
41
42
43
44
45
46
47
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-karma');
var sourceFiles = grunt.file.readJSON('build.json');
grunt.initConfig({
concat: {
pointerevents: {
options: {
stripBanners: true,
banner: grunt.file.read('LICENSE')
},
nonull: true,
src: sourceFiles,
dest: 'pointerevents.dev.js'
}
},
uglify: {
pointerevents: {
options: {
// sourceMap: 'pointerevents.min.js.map',
banner: grunt.file.read('LICENSE')
},
nonull: true,
dest: 'pointerevents.min.js',
src: sourceFiles
}
},
karma: {
options: {
configFile: 'karma.conf.js'
},
pointerevents: {
},
buildbot: {
reporters: 'crbot',
logLevel: 'OFF'
}
}
});
grunt.registerTask('default', ['concat', 'uglify']);
grunt.registerTask('test', 'karma:pointerevents');
grunt.registerTask('test-buildbot', 'karma:buildbot');
};