/vue_template

vue项目模板

Primary LanguageJavaScript

vue_template

安装依赖

npm install

启动项目

npm run serve

测试环境打包

npm run build:dev

线上环境打包

npm run build:prod

git operations

# 将代码提交至缓存区
git add .
# commit操作使用以下命令
npm run commit
  • 第一步是选择type,本次更新的类型
Type 作用
feat 新增特性 (feature)
fix 修复 Bug(bug fix)
docs 修改文档 (documentation)
style 代码格式修改(white-space, formatting, missing semi colons, etc)
refactor 代码重构(refactor)
perf 改善性能(A code change that improves performance)
test 测试(when adding missing tests)
build 变更项目构建或外部依赖(例如 scopes: webpack、gulp、npm 等)
ci 更改持续集成软件的配置文件和 package 中的 scripts 命令,例如 scopes: Travis, Circle 等
chore 变更构建流程或辅助工具(比如更改测试环境)
revert 代码回退