Skip to content

Commit

Permalink
perf(cli): load svrx before print info
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchaoying committed Jul 2, 2019
1 parent 9c38a13 commit 975f4de
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/svrx-cli/bin/svrx.js
Expand Up @@ -126,6 +126,8 @@ program
.command('help')
.description(COMMANDS.help.description)
.action(async () => {
const svrx = await prepareSvrx();

console.log('Usage: svrx <command> [options]\n');
console.log('Commands and options:\n');

Expand All @@ -138,7 +140,6 @@ program
// help info of command:serve
console.log(`* ${'serve|s'.padEnd(20)}${COMMANDS.serve.description}`);

const svrx = await prepareSvrx();
svrx.Svrx.printHelp();
process.exit(0);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/svrx-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/svrx-plugin-webpack/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/svrx-toolkit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/svrx-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/svrx-util/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/svrx/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 975f4de

Please sign in to comment.