https://github.com/magicmark/pre-commit-wrapper-npm
https://github.com/magicmark/pre-commit-wrapper-npm
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/magicmark/pre-commit-wrapper-npm
- Owner: magicmark
- Created: 2017-10-28T17:34:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T10:15:59.000Z (about 8 years ago)
- Last Synced: 2025-02-16T03:24:47.638Z (about 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pre-commit-wrapper-npm
A wrapper/bootstrap script for [pre-commit](https://github.com/pre-commit/pre-commit) for npm/yarn.
## Getting started
```bash
$ yarn add pre-commit-wrapper-npm --dev
```
## Installing hooks
Make sure to remember to install the pre-commit hook to your local repo:
```bash
$ pre-commit install -f --install-hooks
```
That's it! You can configure pre-commit as normal, following the [docs](http://pre-commit.com/).
(The pre-commit executable is available via `./node_modules/.bin/pre-commit`)