forked from node-red/node-red-nodegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
executable file
·36 lines (36 loc) · 1.08 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
module.exports = function (grunt) {
grunt.initConfig({
shell: {
generateNode_Function: {
command: 'node bin/node-red-nodegen.js samples/lower-case.js -o ./nodegen'
},
generateNode_Swagger: {
command: 'node bin/node-red-nodegen.js samples/swagger.json -o ./nodegen'
},
generateNode_WebOfThings: {
command: 'node bin/node-red-nodegen.js samples/MyLampThing.jsonld -o ./nodegen'
}
},
simplemocha: {
options: {
timeout: 10000,
retries: 10
},
all: {
src: [ 'test/**/*_spec.js' ]
}
},
mocha_istanbul: {
options: {
timeout: 10000
},
all: {
src: [ 'test/**/*_spec.js' ]
}
}
});
grunt.file.mkdir('nodegen');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.registerTask('default', ['shell', 'simplemocha']);
};