-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
54 lines (45 loc) · 1.1 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
/* global module, require */
module.exports = function (grunt) {
module.require('time-grunt')(grunt);
grunt.initConfig({
sync: {
all: {
options: {
sync: ['author', 'name', 'version', 'description', 'homepage', 'license']
}
}
},
'nice-package': {
all: {
options: {
blankLine: true
}
}
},
jshint: {
'options': {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish'),
force: true
},
default: {
'src': [ '*.js', 'test/*.js' ]
}
},
complexity: grunt.file.readJSON('complexity.json'),
qunit: {
all: ['index.html']
},
'node-qunit': {
all: {
deps: './qunit-promises.js',
code: './qunit-promises.js',
tests: ['./test/node-tests.js', './test/node-once-tests.js']
}
}
});
var plugins = module.require('matchdep').filterDev('grunt-*');
plugins.forEach(grunt.loadNpmTasks);
grunt.registerTask('default', ['deps-ok', 'nice-package', 'sync',
'jshint', 'node-qunit', 'qunit', 'complexity']);
};