docs: fix bootstrap command (#9099)

This commit is contained in:
neverland 2021-07-23 10:12:48 +08:00 committed by GitHub
parent fc4e4e36ab
commit 09e93eb2ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ It's welcomed to pull request, And there are some tips about that:
- When in doubt, keep your pull requests small. To give a PR the best chance of getting accepted, don't bundle more than one feature or bug fix per pull request. It's always best to create two smaller PRs than one big one.
- When adding new features or modifying existing, please attempt to include tests to confirm the new behaviour.
- When adding new features or modifying existing, please attempt to include tests to confirm the new behavior.
- Rebase before creating a PR to keep commit history clear.
@ -31,9 +31,9 @@ git clone git@github.com:youzan/vant.git
cd vant
npm run bootstrap
yarn
npm run dev
yarn dev
# open http://localhost:8080
```

View File

@ -24,16 +24,16 @@
git clone git@github.com:youzan/vant.git
# 安装依赖
cd vant && npm run bootstrap
cd vant && yarn
# 进入开发模式,浏览器访问 http://localhost:8080
npm run dev
yarn dev
```
### 目录结构
- 仓库的组件代码位于 src 下,每个组件一个文件夹
- docs 目录下是文档网站的代码,本地开发时可以在目录下运行 npm run dev 开启文档网站
- docs 目录下是文档网站的代码,本地开发时可以在目录下运行 `yarn dev` 开启文档网站
项目主要目录如下: