-
Notifications
You must be signed in to change notification settings - Fork 1
/
nodics.js
68 lines (54 loc) · 1.67 KB
/
nodics.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
64
65
66
67
68
/*
Nodics - Enterprice Micro-Services Management Framework
Copyright (c) 2017 Nodics All rights reserved.
This software is the confidential and proprietary information of Nodics ("Confidential Information").
You shall not disclose such Confidential Information and shall use it only in accordance with the
terms of the license agreement you entered into with Nodics.
*/
const FRAMEWORK = require('./gFramework');
module.exports = {
/**
* This function is used to initiate module loading process. If there is any functionalities, required to be executed on module loading.
* defined it that with Promise way
* @param {*} options
*/
init: function (options) {
return new Promise((resolve, reject) => {
resolve(true);
});
},
/**
* This function is used to finalize module loading process. If there is any functionalities, required to be executed after module loading.
* defined it that with Promise way
* @param {*} options
*/
postInit: function (options) {
return new Promise((resolve, reject) => {
resolve(true);
});
},
start: function () {
FRAMEWORK.start();
},
genApp: function () {
FRAMEWORK.genApp();
},
genGroup: function () {
FRAMEWORK.genGroup();
},
genModule: function () {
FRAMEWORK.genModule();
},
genReactModule: function () {
FRAMEWORK.genReactModule();
},
genVueModule: function () {
FRAMEWORK.genVueModule();
},
cleanAll: function () {
FRAMEWORK.cleanAll();
},
buildAll: function () {
FRAMEWORK.buildAll();
}
};