Skip to content

Commit

Permalink
fix: process should exit after client init success
Browse files Browse the repository at this point in the history
  • Loading branch information
cpselvis committed Nov 10, 2017
1 parent 649a0ae commit 572eac5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/core/initClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class Client {
}

if (!fs.existsSync(baseDir)) {
log.info('检测到这是您第一次使用feflow,即将进行cli client初始化');

fs.mkdirsSync(baseDir);
}

Expand Down Expand Up @@ -70,6 +72,8 @@ class Client {
utils.safeDump(answer, rcPath);
log.debug('.feflow/.feflowrc.yml 配置文件已经创建');

log.info('初始化完成,请输入命令开启feflow的使用之旅。(帮助:feflow -h)');
process.exit(2);
resolve(ctx);
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/generator/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Generator {
} else {
log.warn(
'检测到你还未安装任何模板,请先安装后再进行项目初始化,' +
'参考文档:https://github.com/cpselvis/feflow-cli/blob/master/README.md'
'参考文档:https://github.com/iv-web/feflow-cli/blob/master/README.md'
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "feflow-cli",
"version": "0.11.1",
"version": "0.11.2",
"description": "A command line tool aims to improve front-end engineer workflow.",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 572eac5

Please sign in to comment.