-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
59 lines (54 loc) · 1.33 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
test: {
files: ['test/daylite_test.js']
},
qunit: {
files: ['test/**/*.html']
},
lint: {
// qunit.js throws tons of lint problems.
//files: ['grunt.js', 'js/**/*.js', 'test/**/*.js']
files: ['grunt.js', 'js/**/*.js', 'test/daylite_casper_test.js', 'test/daylite_test.js']
},
watch: {
files: '<config:lint.files>',
tasks: 'default'
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true
},
globals: {
exports: true,
define: true,
browser: true,
document: true
}
}
});
// Default task.
grunt.registerTask('default', 'lint');
// A convenient task alias.
grunt.registerTask('uitest', 'server casper');
grunt.registerTask('foo', 'A sample task that logs stuff.', function(arg1, arg2) {
if (arguments.length === 0) {
grunt.log.writeln(this.name + ", no args");
} else {
grunt.log.writeln(this.name + ", " + arg1 + " " + arg2);
}
});
grunt.loadTasks('tasks');
};