Skip to content

前端工具

nvm

nvm 全名 node.js version management,是一个 nodejs 的版本管理工具。通过它可以安装和切换不同版本的 nodejs。下面列出下载、安装及使用方法。

yalc

yalc yarn工具时代,本地开发npm的工具

npm-check-updates

更新 package.json 依赖项到最新版本

bash
npm install -g npm-check-updates
yarn global add npm-check-updates

npx npm-check-updates

ncu -u // 更新 package.json 依赖项到最新版本

commitizen

commitizencz-customizable

js
module.exports = {
  types: [
    {
      value: 'feat',
      name: '✨     feat:  添加新功能',
    },
    {
      value: 'fix',
      name: '🐞      fix:  修复Bug',
    },
    {
      value: 'refactor',
      name: '🛠  refactor:  重构代码',
    },
    {
      value: 'perf',
      name: '🐎     perf:  改善性能',
    },
    {
      value: 'docs',
      name: '📚     docs:  撰写文档',
    },
    {
      value: 'test',
      name: '🏁     test:  添加测试文件',
    },
    {
      value: 'chore',
      name: '🗯     chore:  没有对src或test模块改动. 一般是更新依赖或者构建产生的改变',
    },
    {
      value: 'style',
      name: '💅    style:  代码格式修改,比如缩进、空格、缺失的结束符等',
    },
    {
      value: 'revert',
      name: '⏪   revert:  返回到某个commit',
    },
    {
      value: 'WIP',
      name: '⏳     WIP:   Work in progress',
    },
  ],
  scopes: [
    'pages',
    'components',
    'routes',
    'dependencies',
    'assets',
    'utils',
    'service',
    'layouts',
    'public',
    'static',
    'config',
    'rootPath',
  ],
  allowCustomScopes: true,
  skipQuestions: ['footer'],
}

提交规范

@commitlint/cli @commitlint/config-conventional

husky

git hooks husky