Skip to content

Commit 89bc879

Browse files
author
supfn
committed
1.0.2
1 parent b761679 commit 89bc879

File tree

5 files changed

+243
-341
lines changed

5 files changed

+243
-341
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ typings/
6666
.env
6767

6868
# custom
69-
69+
.DS_Store

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# vue-multi-page-cli
22

3-
A simple CLI for scaffolding Vue.js multiple page projects.
3+
A simple CLI for scaffolding Vue.js multiple page project
44

5-
### Installation
5+
## Installation
66

77
```shell
88
$ npm install -g @supfn/vue-multi-page-cli
99
```
1010

1111

12-
### Usage
12+
## Usage
1313

1414
```shell
1515
$ vue-multi-page-cli init <project-name>

src/index.js bin/index.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ program.version(packageJson.version, '-v, --version')
1717
inquirer.prompt([
1818
{
1919
name: 'description',
20-
message: '请输入项目描述'
20+
message: 'Enter a project description'
2121
},
2222
{
2323
name: 'author',
24-
message: '请输入作者名称'
24+
message: 'Enter author name'
2525
}
2626
]).then((answers) => {
27-
const spinner = ora('正在下载模板...');
27+
const spinner = ora('download ...');
2828
spinner.start();
2929
download('github:supfn/vue-multi-page-template#master', name, {clone: true}, (err) => {
3030
if(err){
@@ -43,13 +43,12 @@ program.version(packageJson.version, '-v, --version')
4343
const result = handlebars.compile(content)(meta);
4444
fs.writeFileSync(fileName, result);
4545
}
46-
console.log(symbols.success, chalk.green('项目初始化完成'));
46+
console.log(symbols.success, chalk.green('Project initialization is complete'));
4747
}
4848
})
4949
})
5050
}else{
51-
// 错误提示项目已存在,避免覆盖原有项目
52-
console.log(symbols.error, chalk.red('项目已存在'));
51+
console.log(symbols.error, chalk.red(`'${name}' already exists`));
5352
}
5453
});
5554
program.parse(process.argv);

0 commit comments

Comments
 (0)