简化模块加载

deprecated hydro-build
This commit is contained in:
undefined committed 2020-07-15 20:46:45 +08:00
1 parent 8aef05a375
commit 8f6968bbbd
41 files changed
+1361 -1957

No files matched your search

+3 -4
View File
@@ -12,10 +12,9 @@ export async function load(call) {
require('../utils');
require('../error');
try {
require('../options');
require('../options').default();
} catch (e) {
await call({ entry: 'setup' });
require('../options');
await call({ entry: 'setup', newProcess: true });
}
const bus = require('../service/bus');
await new Promise((resolve) => {
@@ -49,7 +48,7 @@ export async function load(call) {
const ins = require('../script/install');
await ins.run({ username: 'Root', password: 'rootroot' });
}
await setting(pending, fail, modelSetting, modelSystem);
await setting(pending, fail, modelSetting);
for (const i in global.Hydro.service) {
if (global.Hydro.service[i].postInit) {
try {