-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgrunt.js
95 lines (93 loc) · 1.9 KB
/
grunt.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
* @param {Object} grunt build system.
*/
module.exports = function(grunt) {
grunt.initConfig({
lint: {
files: [
'grunt.js',
'src/*.js',
'test/*.js'
]
},
concat: {
core: {
src: [
'src/init.coffee',
'src/util.coffee',
'src/trampoline.coffee'
],
dest: '_temp/pp-core.coffee'
},
promise: {
src: [
'src/promise.coffee',
'src/generator.coffee'
],
dest: '_temp/pp-promise.coffee'
},
collection: {
src: [
'src/mixins.coffee',
'src/each.coffee',
'src/map.coffee',
'src/fold.coffee',
'src/filter.coffee',
'src/any.coffee',
'src/whilist.coffee',
'src/task.coffee',
'src/waterfall.coffee'
],
dest: '_temp/pp-collection.coffee'
},
full: {
src: [
'_temp/pp-core.coffee',
'_temp/pp-promise.coffee',
'_temp/pp-collection.coffee'
],
dest: '_temp/pp.coffee'
}
},
coffee: {
'lib': {
dest: 'lib',
src: ['_temp/pp.coffee'],
options: {
bare: true
}
},
'web': {
dest: 'dist',
src: ['_temp/pp.coffee'],
options: {
bare: false
}
}
},
min: {
dist: {
src: ['dist/pp.js'],
dest: 'dist/pp.min.js'
}
},
buster: {
test: {
config: 'test/buster.js'
}
},
watch: {
files: [
'grunt.js',
'test/*.js',
'test/*.coffee',
'src/*.coffee'
],
tasks: 'concat coffee lint min buster'
}
});
grunt.registerTask('default', 'concat coffee lint min buster');
grunt.registerTask('travis', 'buster');
grunt.loadNpmTasks('grunt-coffee');
grunt.loadNpmTasks('grunt-buster');
};