-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.js
37 lines (34 loc) · 988 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) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
xo: {
target: ['lib/*']
},
jsdoc2md: {
oneOutputFile: {
src: 'index.js',
dest: 'docs/api.md'
}
},
concat: {
options: {
separator: '\n'
},
dist: {
src: ['docs/README.header.md', 'docs/api.md', 'docs/README.footer.md'],
dest: 'README.md'
}
},
shell: {
purgebadges: {
command: 'node_modules/.bin/camo-purge'
}
}
});
grunt.loadNpmTasks('grunt-xo');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('test', ['xo', 'shell:purgebadges']);
grunt.loadNpmTasks('grunt-jsdoc-to-markdown');
grunt.registerTask('doc', ['jsdoc2md', 'concat']);
};