Skip to content

yuhao423/YuFlux

Repository files navigation

1. 基本工程化

  1. eslint √
  2. typescript及tsc检查 √
  3. 打包配置 rollup ×
  4. prettier 代码格式化,与eslint有冲突,需要额外依赖 √
  5. commit,husky 规范 √
  6. mit开源管理 ×
  7. npm源管理 √
  8. ci pr时候进行检测等等 √
simple-git-hooks

本人git垃圾,决定采用simple-git-hooks来规范 git ,轻量,简洁,快速上手,感觉比cz好用。 用法:@see https://gitcode.com/toplenboren/simple-git-hooks/overview?utm_source=artical_gitcode&isLogin=1

  1. 安装开发依赖;simple-git-hooks,lint-staged;
  2. package.json 中加入simple-git-hookslint-staged
  3. 设置钩子,pre-commit,pre-push,commit-msg
"simple-git-hooks": {
    "pre-commit": "pnpm lint-staged && node scripts/commitVerify.js",
    "pre-push": "pnpm format",
    "commit-msg": "node scripts/commitVerify.js",
    "preserveUnused": true
  },

About

a mini Websocket Clinent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published