forked from coremob/coremob-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
executable file
·75 lines (69 loc) · 1.46 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
68
69
70
71
72
73
74
75
if ( global.grunt ) {
fail.fatal( 'YOU MUST UPGRADE GRUNT TO 0.3.0 OR NEWER' );
}
/*global config:true, task:true, module:true */
module.exports = function(grunt) {
var task = grunt.task;
var file = grunt.file;
var utils = grunt.utils;
var log = grunt.log;
var verbose = grunt.verbose;
var fail = grunt.fail;
var option = grunt.option;
var config = grunt.config;
var template = grunt.template;
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
banner: ''
},
lint: {
files: ['tests/!(boilerplate)**/*.js']
},
watch: {
files: ['<config:lint.files>'],
tasks: 'default'
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: false,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
evil: true,
browser: true,
trailing: true,
maxerr: 10,
loopfunc: true
},
globals: {
self: true,
Node: true,
global: true,
exports: true,
require: true,
file: true,
log: true,
console: true,
importScripts: true,
// Test API
Hat: true,
H: true,
test: true,
asyncTest: true,
// Assertions
assert: true,
ok: true
}
},
uglify: {}
});
// Default task.
task.registerTask('default', 'lint');
};