-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
39 lines (37 loc) · 1003 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
38
39
module.exports = function(grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
jsdox: {
generate: {
src: ['source/app/html/js/dev/*'],
dest: 'docs/api/'
}
},
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2
},
files: {
"source/app/html/css/main.css": "source/app/html/less/main.less", // destination file and source file
"source/app/html/css/graphics.css": "source/app/html/less/graphics.less",
"source/app/html/css/login.css": "source/app/html/less/login.less"
}
}
},
watch: {
styles: {
files: ["source/app/html/less/*"], // which files to watch
tasks: ['less']
},
javascript: {
files: ['source/app/html/js/dev/*'],
tasks: ['jsdox']
}
}
});
grunt.loadNpmTasks('grunt-jsdox');
grunt.registerTask('default', ['jsdox', 'less', 'watch']);
};