Comparing version 0.11.4 to 0.11.5
{ | ||
"name": "husky", | ||
"version": "0.11.4", | ||
"version": "0.11.5", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,4 @@ # husky [![](http://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/husky) [![npm version](https://badge.fury.io/js/husky.svg)](http://badge.fury.io/js/husky) [![Build Status](https://travis-ci.org/typicode/husky.svg?branch=master)](https://travis-ci.org/typicode/husky) | ||
_Used by [jQuery](https://github.com/jquery/jquery), [Kibana](https://github.com/elastic/kibana), [JSON Server](https://github.com/typicode/json-server), [Hotel](https://github.com/typicode/hotel) and many other awesome projects._ | ||
## Usage | ||
@@ -29,8 +31,10 @@ | ||
Existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks. You can also use [any Git hook](HOOKS.md). | ||
Existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks. You can also use [any Git hook](HOOKS.md). Optionally include the environment variable `$GIT_PARAMS` in your scripts to access any command-line parameters provided by git. | ||
## Debug | ||
## Tips | ||
If you need to debug hooks, use `npm run <script-name>`. For example: | ||
### Debug | ||
If you need to debug hooks, use `npm run <script-name>`, for example: | ||
```bash | ||
@@ -40,4 +44,12 @@ npm run precommit | ||
## Uninstall | ||
### GUI applications | ||
If you've installed Node using the [standard installer](https://nodejs.org/en/), [nvm](https://github.com/creationix/nvm) or [homebrew](http://brew.sh/), git hooks will be executed even in GUI applications. | ||
### NVM | ||
If you're using [nvm](https://github.com/creationix/nvm), husky will try to use the `default` installed version or use the project `.nvmrc` file. | ||
### Uninstall | ||
To uninstall husky and Git hooks, simply run: | ||
@@ -44,0 +56,0 @@ |
@@ -94,2 +94,3 @@ var fs = require('fs') | ||
// Run script | ||
'export GIT_PARAMS=$*', | ||
'npm run ' + cmd, | ||
@@ -96,0 +97,0 @@ 'if [ $? -ne 0 ]; then', |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10469
185
61