-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
61 lines (53 loc) · 1.35 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
Grunt.js
http://gruntjs.com/
*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-docco');
grunt.loadNpmTasks('grunt-contrib-uglify');
// grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-jslint');
// Project configuration.
grunt.initConfig({
jslint: {
files: ['grunt.js','appseeds.js', 'plugins/backbone-seeds/backbone.seeds.js'],
directives: { vars: true, white: true, sloppy: true, plusplus: true,
bitwise: true, nomen: true, todo: true, forin: true, browser: true, node: true },
options: {
failOnError: false // thank you thank you thank you
}
},
qunit: {
index: ['test/test.html']
},
uglify: {
seeds: {
src: 'appseeds.js',
dest: 'appseeds.min.js'
},
plugins: {
src: 'plugins/backbone-seeds/backbone.seeds.js',
dest: 'plugins/backbone-seeds/backbone.seeds.min.js'
}
},
/* Docco task */
docco: {
/* main appseeds file */
seeds: {
src: ['appseeds.js'],
options: {
output: 'docs/'
}
},
/* plugin files */
plugins: {
src: ['plugins/**/*.js'],
options: {
output: 'docs/'
}
}
}
});
// Default task.
grunt.registerTask('default', ['jslint'/*, 'qunit'*/ ,'uglify', 'docco']);
};