-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeptree.js
63 lines (48 loc) · 1.12 KB
/
deptree.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
57
58
59
60
61
62
63
'use strict';
var config = require('./config/env');
// individual modules
exports.booking = {
server: {
packagePath: 'modules/bookings',
packageRole: 'server',
server: config.redis,
keyStore: config.keyStore,
DEBUG: false
},
client: {
packagePath: 'modules/bookings',
packageRole: 'client',
server: config.redis
},
module: {
packagePath: 'modules/bookings',
packageRole: 'default',
keyStore: config.keyStore
}
};
/*
* Common modules are common across sub-projects.
* Ex: db module, analytics module are contendors.
*/
exports.common = [
{
'packagePath': 'models',
'server': config.db
}
];
// interfaces
exports.expressApp = {
'packagePath': 'interfaces/express-app',
'config': config,
}
// main app
exports.mainapp = [ exports.expressApp, exports.booking.client ]
.concat(exports.common);
// a command line version
exports.bookingservice = [ exports.booking.server ]
.concat(exports.common);
// one monolith
exports.monolith = [ exports.expressApp, exports.booking.module ]
.concat(exports.common);
// microservers - empty
module.exports = exports;