Browse Source

Add missing step

pull/14821/head
Mahmut Gundogdu 3 years ago
parent
commit
c33616e10a
  1. 3
      npm/ng-packs/README.md

3
npm/ng-packs/README.md

@ -27,6 +27,7 @@ If would you like contribute, see the [contribution guideline](./CONTRIBUTING.md
There is a pre-defined git hook for Angular project. This hook is `pre-commit`. The hook run prettier for staged files. If you want to use this hook. (This steps tested for linux and Mac os)
- Go to `npm/ng-packs`
- Run `chmod +x ./pre-commit`
- Run `chmod +x ./pre-commit` in terminal
- Run `git config core.hooksPath npm/ng-packs` in terminal
and now, when you create a git commit, git hook execute prettier for staged files.
Loading…
Cancel
Save