1.0.0 • Published 7 years ago
twf v1.0.0
定制项目工作流,最佳实践
定制 git commit 格式、eslint config
Installing the command line tool
Install with npm:
$ npm install twf -gUsing the command line tool
Now, simply use twf instead of git commit when committing.
Alternatively, if you are using NPM 5.2+ you can use npx instead of installing globally:
npm install twf -D
npx twfor as an npm script:
...
"scripts": {
"commit": "npx twf"
}Add git hooks
npx twf addHookThen, the code about hooks will be inserted into the package.json.
You can custom commit-msg rule by change the file path of husky.hooks.commit-msg in package.json.
Add eslint config
npx twf eslintGenerate eslint configuration file that i like
1.0.0
7 years ago