2021-05-21 15:50:56 +00:00
|
|
|
# Design Patterns for Humans ZH - VuePress
|
|
|
|
|
2021-05-21 15:59:24 +00:00
|
|
|
## 安装依赖 / Init development
|
|
|
|
|
|
|
|
您需要首先安装 [Node.js](https://nodejs.org/en/) >= 8.6 版本。
|
2021-05-21 15:50:56 +00:00
|
|
|
|
|
|
|
You need to have installed [Node.js](https://nodejs.org/en/) version >= 8.6 at least.
|
|
|
|
|
|
|
|
```bash
|
2021-05-21 15:59:24 +00:00
|
|
|
# 推荐使用 yarn 管理包
|
|
|
|
# 您可以使用 npm install -g yarn 安装它
|
2021-05-21 15:50:56 +00:00
|
|
|
yarn install
|
|
|
|
```
|
|
|
|
|
2021-05-21 15:59:24 +00:00
|
|
|
## 开始开发 / Start development
|
2021-05-21 15:50:56 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn dev
|
|
|
|
```
|
|
|
|
|
2021-05-21 15:59:24 +00:00
|
|
|
## 构建代码 / Build for production
|
2021-05-21 15:50:56 +00:00
|
|
|
|
|
|
|
```baah
|
|
|
|
yarn build
|
|
|
|
```
|