Skip to content

pnpm + egg + eslint + commitlint + commitizen + husky

License

Notifications You must be signed in to change notification settings

lycpan233/egg-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

egg-template

pnpm + egg + eslint + commitlint + commitizen + husky

Quick Start

  1. 安装依赖
pnpm install
  1. 启动项目
pnpm run dev
  1. 请求接口
http://localhost:7001

husky

  1. 安装依赖
pnpm add husky -D
  1. 添加脚本
// package.json
  "scripts": {
    "lint": "eslint . --fix",
    "husky": "husky install",
  }
  1. 初始化 husky
pnpm run husky
npx husky add .husky/pre-commit "npm run lint"

commitizen + commitlint + husky

详见博客: Commitizen + Commitlint + husky 实践

About

pnpm + egg + eslint + commitlint + commitizen + husky

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published