-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
44 lines (35 loc) · 946 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
/*
* grunt-stats
* https://github.com/soul-wish/grunt-stats
*
* Copyright (c) 2016 Sergey Lysenko
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
// Configuration to be run.
stats: {
default_options: ['test/fixtures/'],
custom_options: {
options: {
mode: 'verbose'
},
src: ['test/', 'tasks/']
}
},
// Unit tests.
nodeunit: {
tests: ['test/test.js']
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-nodeunit');
// Run tests.
grunt.registerTask('test', ['nodeunit']);
// By default, run all tests.
grunt.registerTask('default', ['test']);
};