Skip to content

Commit f42d1ea

Browse files
B3nnyLtangjinzhou
authored andcommitted
Update docs for supporting vue cli 3 (#176)
* update: vue-cli-3 * chore: update vue-cli-3 for use-with-vue-cli
1 parent 8a45202 commit f42d1ea

4 files changed

+20
-7
lines changed

docs/vue/getting-started.en-US.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ $ npm install vue-cli -g
2727
A new project can be created using CLI tools.
2828

2929
```bash
30-
$ vue init webpack antd-demo
30+
$ vue create antd-demo
3131
```
3232

33+
And, setup your vue project configuration.
34+
3335
### 3. Use antd's Components
3436

3537

docs/vue/getting-started.zh-CN.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ $ npm install vue-cli -g
2727
使用命令行进行初始化。
2828

2929
```bash
30-
$ vue init webpack antd-demo
30+
$ vue create antd-demo
3131
```
3232

33+
并配置项目。
34+
3335
若安装缓慢报错,可尝试用 `cnpm` 或别的镜像源自行安装:`rm -rf node_modules && cnpm install`
3436

3537
### 3. 使用组件

docs/vue/use-with-vue-cli.en-US.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ $ npm install -g vue-cli yarn
1515
Create a new project named `antd-demo`.
1616

1717
```bash
18-
$ vue init webpack antd-demo
18+
$ vue create antd-demo
1919
```
2020

21+
And, setup your vue project configuration.
22+
2123
The tool will create and initialize environment and dependencies automatically,
2224
please try config your proxy setting or use another npm registry if any network errors happen during it.
2325

@@ -36,8 +38,11 @@ Below is the default directory structure.
3638

3739
```
3840
├── README.md
41+
├── babel.config
3942
├── package.json
40-
├── index.html
43+
├── public
44+
│   ├── favicon.ico
45+
│   └── index.html
4146
├── src
4247
│   ├── assets
4348
│ │ └── logo.png

docs/vue/use-with-vue-cli.zh-CN.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ $ npm install -g vue-cli yarn
1515
然后新建一个项目。
1616

1717
```bash
18-
$ vue init webpack antd-demo
18+
$ vue create antd-demo
1919
```
2020

21+
并配置项目。
22+
2123
工具会自动初始化一个脚手架并安装 Vue 项目的各种必要依赖,如果在过程中出现网络问题,请尝试配置代理或使用其他 npm registry。
2224

2325
然后我们进入项目并启动。
@@ -35,9 +37,11 @@ $ npm run dev
3537

3638
```
3739
├── README.md
38-
├── .babelrc
40+
├── babel.config
3941
├── package.json
40-
├── index.html
42+
├── public
43+
│   ├── favicon.ico
44+
│   └── index.html
4145
├── src
4246
│   ├── assets
4347
│ │ └── logo.png

0 commit comments

Comments
 (0)