gaodingui
ui repo for gaoding
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run components document server
npm run doc
# build components document
npm run doc:build
vue-styleguidist
check vue styleguidist document here
commitizen
为了规范化 commit 信息,使用 commitizen
- 配置
- 项目已经添加了 commitizen 和 cz-conventional-changelog, 可以使用 npm/yarn 进行 commit:npm run cz / yarn cz
- 如果想全局使用,请参考https://github.com/commitizen/cz-cli#conventional-commit-messages-as-a-global-utility进行配置,配置完成后可以使用`git cz`来进行 commit 操作
- vscode 配置: 安装Visual Studio Code Commitizen Support, 然后在配置项(cmd+,打开)里修改最长字符限制到 100:
"commitizen.subjectLength": 100,
- 其他
- commit 规范使用cz-conventional-changelog, 简述最长限制 100 个字符
- commit 的长描述断行使用
\n
,示例:1. add cz task: npm run cz / yarn cz\n2. use cz-conventional-changelog stardard
For a detailed explanation on how things work, check out the guide and docs for vue-loader.