成人无码视频,亚洲精品久久久久av无码,午夜精品久久久久久毛片,亚洲 中文字幕 日韩 无码

資訊專欄INFORMATION COLUMN

推薦幾個(gè)前端開(kāi)發(fā)插件

techstay / 2174人閱讀

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

提高開(kāi)發(fā)效率

簡(jiǎn)單的集成到了vue-cli生成的項(xiàng)目上 項(xiàng)目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

管理團(tuán)隊(duì)的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

管理團(tuán)隊(duì)css編寫規(guī)范

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