forked from tomusdrw/grunt-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
39 lines (29 loc) · 907 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
/*global module:false*/
module.exports = function(grunt) {
require('time-grunt')(grunt);
// Project configuration.
grunt.initConfig({
files: ['Gruntfile.js', 'tasks/**/*.js', 'test/*.js'],
watch: {
all: {
files: '<%= files %>'
}
},
simplemocha: {
all: {
src: 'test/*.js'
}
},
jshint: {
all: '<%= files %>'
},
sync: grunt.file.readJSON('sync.json'),
complexity: grunt.file.readJSON('complexity.json')
});
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-complexity');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint', 'simplemocha', 'complexity']);
// Used for testing only, you shouldn't add this to your code:
grunt.loadTasks('tasks');
};