forked from mroderick/PubSubJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
47 lines (38 loc) · 796 Bytes
/
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
/*jslint white:true*/
/*global
module
*/
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
jslint: {
files: [
'src/**/*.js',
'test/**/*.js'
],
exclude: [],
options: {
junit: 'out/junit.xml', // write the output to a JUnit XML
log: 'out/lint.log',
jslintXml: 'out/jslint_xml.xml',
errorsOnly: true // only display errors
}
},
buster: {
test: {
config: 'test/buster.js'
},
server: {
port: 1111
}
}
});
grunt.loadNpmTasks('grunt-buster');
grunt.loadNpmTasks('grunt-jslint');
// override the built-in lint task with jslint
grunt.registerTask('lint', 'jslint');
grunt.registerTask('test', ['lint', 'buster']);
// Default task.
grunt.registerTask('default', 'test');
};