全局安装 docsify-cli
# MacOS `sudo npm install -g docsify-cli`
npm install -g docsify-cli
启动 docs
npm run docs
安装依赖
# npm install --registry=https://registry.npm.taobao.org
npm install
开发环境
npm run dev
联调环境
npm run rd
测试环境
npm run qa
生产环境
npm run prod
执行下面命令,将会自动修复代码
npm run lint
生成 /CHANGELOG.md
npm run changelog
生成 /docs/CHANGELOG.md
npm run changelog-docs
docker-compose build
docker-compose up -d
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.