提高开发效率,简单集成到vue-cli生成的项目中项目github地址一个Vue.js项目BuildSetup#installdependenciesnpminstall#servewithhotreloadatlocalhost:8080npmrundev#buildforproductionwithminificationnpmrunbuild#buildforproduction并查看包分析器报告npmrunbuild--report有关工作原理的详细说明,请查看vue-loader的指南和文档。一、整合validate-commit-msg管理组的commit信息安装validate-commit-msgnpmi--Dvalidate-commit-msg添加commit规则的步骤1、在根目录下添加一个.vcmrc文件并添加规则,必须是JSON格式","revert"],"scope":{"required":false,"allowed":["*"],"validate":false,"multiple":false},"warnOnFail":false,"maxSubjectLength":100,"subjectPattern":".+","subjectPatternErrorMsg":"subjectdoesnotmatchsubjectpattern!","helpMessage":"","autoFix":false}2.添加到package.json{"config":{“验证提交信息”:{/*你的配置在这里*/}}}安装husky并添加commitmsg命令npmi--Dhusky添加"commitmsg":"validate-commit-msg"inpackage.json:"scripts":{"commitmsg":"validate-commit-msg"}}查看validate-commit-msg的详细信息2.整合stylelint管理团队css编写规范步骤installstylelint,stylelint-order,stylelint-processor-html,stylelint-scss,stylelint-webpack-plugin//stylelint-order:attributeorderplugin//stylelint-processor-htm:检查html中
