forked from jacobrask/styledocco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
67 lines (63 loc) · 1.4 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
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
browserify: {
'dist/docs.js': {
entries: [ 'web/app.js' ],
aliases: [ 'jquery:jquery-browserify' ]
}
},
concat: {
dist: {
src: [ 'web/*.css', 'web/views/*.css' ],
dest: 'dist/docs.css'
}
},
jade: {
html: {
src: [ 'web/index.jade' ],
dest: 'dist/index.html',
options: { client: false, pretty: true }
}
},
watch: {
files: [ 'web/**', 'grunt.js' ],
tasks: 'browserify concat jade'
},
lint: {
files: [ 'web/app.js', 'web/models/*.js', 'web/views/*.js' ]
},
jshint: {
options: {
browser: true,
node: true,
camelcase: true,
immed: true,
newcap: true,
undef: true,
unused: true,
strict: true,
maxparams: 3,
maxdepth: 3,
maxstatements: 15,
maxcomplexity: 6,
maxlen: 80,
boss: true,
eqnull: true,
es5: true,
globalstrict: true,
laxbreak: true,
supernew: true
},
globals: {
styledocco: true
}
}
});
// Default task.
grunt.registerTask('default', 'browserify concat jade');
grunt.loadNpmTasks("grunt-contrib");
grunt.loadNpmTasks('grunt-browserify');
};