# cu-ui **Repository Path**: meetqy/cu-ui ## Basic Information - **Project Name**: cu-ui - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-16 - **Last Updated**: 2021-04-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cu-ui 1.0.0 内置功能: * vuex + vue-router * eslint + prettier * git hooks ## 启动 ``` sh npm i npm run serve ``` ## git检查初始化 ``` sh npm run setup ``` ## git提交 执行流程 ``` sh git add . git commit -m 'xxx' # eslint校验本次提交代码,并尝试修复代码 # 弹出 cz # 根据提示选择对应的提交内容 git push ``` ## husky ``` sh # prepare-commit-msg npx husky add .husky/prepare-commit-msg 'exec < /dev/tty && node_modules/.bin/cz --hook || true' # pre-commit npx husky add .husky/pre-commit 'npx lint-staged' # commit-msg npx husky add .husky/commit-msg 'npx commitlint --edit $1' ```