diff --git a/docs/vue/getting-started.en-US.md b/docs/vue/getting-started.en-US.md index 4ab1e08ae..f721c46a7 100644 --- a/docs/vue/getting-started.en-US.md +++ b/docs/vue/getting-started.en-US.md @@ -27,9 +27,11 @@ $ npm install vue-cli -g A new project can be created using CLI tools. ```bash -$ vue init webpack antd-demo +$ vue create antd-demo ``` +And, setup your vue project configuration. + ### 3. Use antd's Components diff --git a/docs/vue/getting-started.zh-CN.md b/docs/vue/getting-started.zh-CN.md index 42c92c282..4651f7dcd 100644 --- a/docs/vue/getting-started.zh-CN.md +++ b/docs/vue/getting-started.zh-CN.md @@ -27,9 +27,11 @@ $ npm install vue-cli -g 使用命令行进行初始化。 ```bash -$ vue init webpack antd-demo +$ vue create antd-demo ``` +并配置项目。 + 若安装缓慢报错,可尝试用 `cnpm` 或别的镜像源自行安装:`rm -rf node_modules && cnpm install`。 ### 3. 使用组件 diff --git a/docs/vue/use-with-vue-cli.en-US.md b/docs/vue/use-with-vue-cli.en-US.md index 5afa9a3f7..a3ae1b152 100644 --- a/docs/vue/use-with-vue-cli.en-US.md +++ b/docs/vue/use-with-vue-cli.en-US.md @@ -15,9 +15,11 @@ $ npm install -g vue-cli yarn Create a new project named `antd-demo`. ```bash -$ vue init webpack antd-demo +$ vue create antd-demo ``` +And, setup your vue project configuration. + The tool will create and initialize environment and dependencies automatically, please try config your proxy setting or use another npm registry if any network errors happen during it. @@ -36,8 +38,11 @@ Below is the default directory structure. ``` ├── README.md +├── babel.config ├── package.json -├── index.html +├── public +│   ├── favicon.ico +│   └── index.html ├── src │   ├── assets │ │ └── logo.png diff --git a/docs/vue/use-with-vue-cli.zh-CN.md b/docs/vue/use-with-vue-cli.zh-CN.md index c880e0820..1af1c5936 100644 --- a/docs/vue/use-with-vue-cli.zh-CN.md +++ b/docs/vue/use-with-vue-cli.zh-CN.md @@ -15,9 +15,11 @@ $ npm install -g vue-cli yarn 然后新建一个项目。 ```bash -$ vue init webpack antd-demo +$ vue create antd-demo ``` +并配置项目。 + 工具会自动初始化一个脚手架并安装 Vue 项目的各种必要依赖,如果在过程中出现网络问题,请尝试配置代理或使用其他 npm registry。 然后我们进入项目并启动。 @@ -35,9 +37,11 @@ $ npm run dev ``` ├── README.md -├── .babelrc +├── babel.config ├── package.json -├── index.html +├── public +│   ├── favicon.ico +│   └── index.html ├── src │   ├── assets │ │ └── logo.png