Update docs for supporting vue cli 3 (#176)
* update: vue-cli-3 * chore: update vue-cli-3 for use-with-vue-clipull/197/head 1.1.0
parent
8a45202d91
commit
f42d1ea3ff
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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. 使用组件
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue