-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.js
44 lines (37 loc) · 1.12 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
tree: {
command: "tree -I 'node_modules*|docs*|tmp*|dist*|bower_components*'"
},
build: {
command: [
'rm -rf dist',
'./node_modules/.bin/broccoli build dist',
'./node_modules/.bin/grunt docco'
].join(' && ')
},
serve: {
command: './node_modules/.bin/broccoli serve'
},
test: {
command: 'npm test'
}
},
docco: {
debug: {
src: ['src/**/*.js'],
options: {
output: 'dist/docs/'
}
}
}
});
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-docco');
grunt.registerTask('build', ['shell:build']);
grunt.registerTask('tree', ['shell:tree']);
grunt.registerTask('serve', ['shell:serve']);
grunt.registerTask('test', ['shell:test']);
};