# javascript-gulp-precommit

> Installs git precommit hook for running `gulp pre-commit` before git commit. Then gulp does linting and other checks.

Latest version **0.0.2** (published 2014-06-30) · CC BY-NC-SA 3.0 license · 0 weekly downloads

## Install

```sh
npm install javascript-gulp-precommit
pnpm add javascript-gulp-precommit
yarn add javascript-gulp-precommit
bun add javascript-gulp-precommit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-06-30 |
| First published | 2014-06-30 |
| Weekly downloads | 0 |
| License | CC BY-NC-SA 3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.11.13 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 6 |
| Author | Ilya Kantor and other contributors listed in git repo |
| Maintainers | iliakan |

## Links

- npm: https://www.npmjs.com/package/javascript-gulp-precommit
- Repository: https://github.com/iliakan/javascript-precommit
- Issues: https://github.com/iliakan/javascript-precommit/issues
- npm.io page: https://npm.io/package/javascript-gulp-precommit

## Recent versions

- 0.0.2 (latest) — 2014-06-30
- 0.0.1 — 2014-06-30

## README

Installs git precommit hook for running lints & checks before git commit.

# Usage

  1. Make sure your `.git` dir is on the same path as `package.json`. In other words, they share the same parent folder. Usually it is so.
  2. Edit your `package.json`, add `precommit: <what to do>`, e.g. 
```js
{ 
  "name": "My package.json",
  "precommit": "gulp lint"
}
```
  3. npm i javascript-precommit

Now every git commit will run `gulp lint` task and only pass if the task is successful.

---
_Source: https://npm.io/package/javascript-gulp-precommit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
