-
Notifications
You must be signed in to change notification settings - Fork 21
/
Gruntfile.js
executable file
·39 lines (37 loc) · 928 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
/**
* Copyright (C) 2014 yanni4night.com
* Gruntfile.js
*
* changelog
* 2014-08-20[11:00:15]:authorized
*
* @author [email protected]
* @version 0.1.0
* @since 0.1.0
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
node: true,
evil:true
},
index: ['index.js']
},
nodeunit: {
tests: ['test/*_test.js']
},
watch: {
index: {
files: ['index.js','test/**/*.{js,html}'],
tasks: ['test']
}
}
});
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['jshint']);
grunt.registerTask('test', ['default', 'nodeunit']);
};