-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJakefile
More file actions
41 lines (36 loc) · 778 Bytes
/
Jakefile
File metadata and controls
41 lines (36 loc) · 778 Bytes
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
/*globals desc, task, jake, fail, complete */
(function(){
'use strict';
desc('build and test');
task('default', ['lint']);
desc('lint everything');
task('lint', [], function(){
var lint = require('jake-jshint');
var options = nodeLintOptions();
var files = new jake.FileList();
files.include('**/*.js');
files.exclude('lib');
files.exclude('node_modules');
if(!lint.validateFileList(files.toArray(), options, {}))
fail('lint failed');
});
function nodeLintOptions() {
return {
bitwise: true,
curly: false,
eqeqeq: true,
forin: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
noempty: true,
nonew: true,
regexp: true,
undef: true,
strict: true,
trailing: true,
node: true
};
}
}());