-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGruntfile.js
More file actions
43 lines (39 loc) · 853 Bytes
/
Gruntfile.js
File metadata and controls
43 lines (39 loc) · 853 Bytes
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
module.exports = function () {
// Project configuration
this.initConfig({
pkg: this.file.readJSON('package.json'),
// Browser build of NoFlo
noflo_browser: {
build: {
options: {
exposed_modules: {
'flowhub-registry': './index',
uuid: 'uuid',
},
},
files: {
'browser/flowhub-registry.js': ['package.json'],
},
},
},
// BDD tests on Node.js
mochaTest: {
nodejs: {
src: ['spec/*.js'],
options: {
reporter: 'spec',
grep: process.env.TESTS,
},
},
},
});
this.loadNpmTasks('grunt-noflo-browser');
this.loadNpmTasks('grunt-mocha-test');
this.registerTask('build', [
'noflo_browser',
]);
this.registerTask('test', [
'build',
'mochaTest',
]);
};