-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gruntfile.js
45 lines (36 loc) · 960 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
/**
* gitignore-to-glob
* https://github.com/EE/gitignore-to-glob
*
* Author Michał Gołębiowski-Owczarek <[email protected]>
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
require('time-grunt')(grunt);
grunt.initConfig({
clean: {
all: {
src: ['*.log', 'test/*/*-copy'],
},
},
eslint: {
all: {
src: ['*.js', 'lib', 'test'],
},
},
mochaTest: {
all: {
options: {
reporter: 'spec',
},
src: ['test/spec.js'],
},
},
});
// Load all grunt tasks matching the `grunt-*` pattern.
require('load-grunt-tasks')(grunt);
grunt.registerTask('lint', ['eslint']);
grunt.registerTask('test', ['mochaTest']);
grunt.registerTask('default', ['clean', 'lint', 'test']);
};