forked from mozilla-b2g/gaia
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
41 lines (38 loc) · 1.01 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) {
'use strict';
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
docs: ['docs/']
},
jsdoc: {
system: {
src: ['apps/system/js/**/*.js',
'!apps/system/js/airplane_mode.js',
'!apps/system/js/sound_manager.js',
'!apps/system/js/value_selector/date_picker.js',
'!apps/system/js/value_selector/spin_date_picker.js'],
options: {
destination: 'docs/system'
}
},
keyboard: {
src: ['apps/keyboard/js/**/*.js',
'!apps/keyboard/js/render.js'],
options: {
destination: 'docs/keyboard'
}
},
options: {
configure: '.jsdocrc',
lenient: true
}
}
});
// Load the plugin that provides tasks
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-jsdoc');
// Default task(s)
grunt.registerTask('docs', ['clean', 'jsdoc']);
};