forked from rai22474/dojoAtdd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
56 lines (48 loc) · 1.25 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
45
46
47
48
49
50
51
52
53
54
55
56
'use strict';
/* jshint varstmt: false */
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
mochacli: {
options: {
ui: 'bdd',
files: ['tests/**/*.js'],
harmony: true
},
dev: {
options: {
reporter: 'spec'
}
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: {
src: [
'src/**/*.js',
'tests/**/*.js',
'acceptance-tests/**/*.js',
'Gruntfile.js'
]
}
}
});
grunt.registerTask(
'performance',
'Execute the performance test',
['exec:performance-test']
);
grunt.registerTask('cucumber', [
'cucumberjs'
]);
grunt.registerTask('test', [
'mochacli'
]);
grunt.registerTask(
'build',
'Compiles all of the assets and copies the files to the build directory.',
['mochacli', 'jshint', 'exec:clean-build', 'copy', 'exec:copy-node-modules', 'exec:prune-node-modules', 'compress']
);
};