forked from feathersjs-ecosystem/errors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
44 lines (40 loc) · 1.05 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
'use strict';
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
release: {},
watch: {
scripts: {
files: ['.jshintrc', 'lib/**/*.js', 'Gruntfile.js', 'test/**/*.js'],
tasks: ['jshint','simplemocha'],
options: {
spawn: true
}
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
lib: ['lib/**/*.js', 'Gruntfile.js'],
test: 'test/**/*.js',
examples: 'examples/**/*.js'
},
simplemocha: {
all: {
options: {
reporter: 'spec',
clearRequireCache: true
},
src: ['test/**/*.test.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-release');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('test', ['jshint', 'simplemocha']);
grunt.registerTask('default', ['jshint', 'simplemocha', 'watch']);
};