Skip to content

Commit 6212b27

Browse files
committed
chore: update deps
1 parent c468ac4 commit 6212b27

File tree

6 files changed

+56
-154
lines changed

6 files changed

+56
-154
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"jest": "^24.9.0"
5959
},
6060
"dependencies": {
61-
"@micro-app/core": "^0.3.23",
61+
"@micro-app/core": "^0.3.28",
6262
"@zkochan/cmd-shim": "^4.3.0",
6363
"read-cmd-shim": "^2.0.0",
6464
"update-notifier": "^4.1.0"

src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ checker.checkUpgrade();
88

99
const { _, logger, fs, tryRequire, path, yParser, smartMerge } = require('@micro-app/shared-utils');
1010
const cmd = process.argv[2];
11-
const argv = yParser(process.argv.slice(3));
11+
const argv = yParser(process.argv.slice(3), {
12+
array: [ 'skip-plugins' ],
13+
configuration: {
14+
'greedy-arrays': true,
15+
},
16+
});
1217

1318
const Service = require('@micro-app/core');
1419

src/plugins/commands/build/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Examples:
2424

2525
logger.info('[build]', `Starting ${api.mode} build...`);
2626

27+
api.applyPluginHooks('beforeBuild', { args });
28+
2729
// custom BuildProcess
2830
const createBuildProcess = api.applyPluginHooks('modifyCreateBuildProcess', () => {
2931
logger.warn('[Plugin]', 'you should be use api.modifyCreateBuildProcess() !');
@@ -34,8 +36,6 @@ Examples:
3436
logger.throw('[Plugin]', 'api.modifyCreateBuildProcess() must be return function !');
3537
}
3638

37-
api.applyPluginHooks('beforeBuild', { args });
38-
3939
return createBuildProcess({ args })
4040
.then(() => {
4141
logger.success('>>> Build Success !!!');

src/plugins/commands/serve/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Examples:
3131

3232
logger.info('[serve]', `Starting ${api.mode} server...`);
3333

34+
api.applyPluginHooks('beforeDevServer', { args });
35+
3436
// custom server
3537
const createServer = api.applyPluginHooks('modifyCreateDevServer', () => {
3638
logger.warn('[Plugin]', 'you should be use api.modifyCreateDevServer() !');
@@ -41,8 +43,6 @@ Examples:
4143
logger.throw('[Plugin]', 'api.modifyCreateDevServer() must be return function !');
4244
}
4345

44-
api.applyPluginHooks('beforeDevServer', { args });
45-
4646
return createServer({ args })
4747
.then(({ host, port, url } = {}) => {
4848
logger.success('>>> Starting Success !!!');

src/plugins/commands/start/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Examples:
2626

2727
logger.info('[start]', `Starting ${api.mode} server...`);
2828

29+
api.applyPluginHooks('beforeServer', { args });
30+
2931
// custom server
3032
const createServer = api.applyPluginHooks('modifyCreateServer', () => {
3133
logger.warn('[Plugin]', 'you should be use api.modifyCreateServer() !');
@@ -36,8 +38,6 @@ Examples:
3638
logger.throw('[Plugin]', 'api.modifyCreateServer() must be return function !');
3739
}
3840

39-
api.applyPluginHooks('beforeServer', { args });
40-
4141
return createServer({ args })
4242
.then(({ host, port, url } = {}) => {
4343
logger.success('>>> Starting Success !!!');

0 commit comments

Comments
 (0)