国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

推薦幾個前端開發(fā)插件

JowayYoung / 3500人閱讀

摘要:提高開發(fā)效率簡單的集成到了生成的項目上項目地址一集成管理團隊的信息步奏安裝添加規(guī)則根目錄添加文件,并添加規(guī)則,必須為格式添加到中安裝并添加命令在中添加查看詳情二集成管理團隊編寫規(guī)范步奏安裝

提高開發(fā)效率

簡單的集成到了vue-cli生成的項目上 項目github地址

A Vue.js project
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

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

一、集成validate-commit-msg

管理團隊的commit信息

步奏
安裝validate-commit-msg
npm i --D validate-commit-msg
添加commit規(guī)則

1.根目錄添加.vcmrc文件,并添加規(guī)則,必須為JSON格式

{
  "types": ["feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore", "revert"],
  "scope": {
    "required": false,
    "allowed": ["*"],
    "validate": false,
    "multiple": false
  },
  "warnOnFail": false,
  "maxSubjectLength": 100,
  "subjectPattern": ".+",
  "subjectPatternErrorMsg": "subject does not match subject pattern!",
  "helpMessage": "",
  "autoFix": false
}

2.添加到package.json中

{
  "config": {
    "validate-commit-msg": {
      /* your config here */
    }
  }
}
安裝husky,并添加commitmsg命令
npm i --D husky

在package.json中添加"commitmsg": "validate-commit-msg"

{
  "scripts": {
    "commitmsg": "validate-commit-msg"
  }
}

查看validate-commit-msg詳情

二、集成stylelint

管理團隊css編寫規(guī)范

步奏
安裝stylelint, stylelint-order, stylelint-processor-html, stylelint-scss, stylelint-webpack-plugin
// stylelint-order: 屬性順序插件
// stylelint-processor-htm: 檢查html中的