-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
34 lines (25 loc) · 910 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
// Encapsule/onm-data-model-validator.js
module.exports = function (grunt_) {
var configObject = {
pkg: grunt_.file.readJSON("package.json"),
jshint: {
files: [ 'Gruntfile.js', 'index.js', 'test/*.js', 'test/**/*.js' ],
options: {
}
},
// Execute server-side Mocha tests using the grunt-mocha-test module.
mochaTest: {
options: { reporter: 'spec', checkLeaks: true },
src: [
'test/test-onm-data-model-validator.js'
]
}
};
grunt_.initConfig(configObject);
grunt_.loadNpmTasks("grunt-contrib-clean");
grunt_.loadNpmTasks("grunt-contrib-jshint");
grunt_.loadNpmTasks("grunt-mocha-test");
grunt_.registerTask("lint", [ "jshint" ]);
grunt_.registerTask("test", [ "mochaTest" ]);
grunt_.registerTask("default", [ "lint", "test" ]);
};