Comparing version 0.15.0-beta.15 to 0.15.0-beta.16
@@ -5,4 +5,10 @@ # CHANGELOG | ||
* Support `sendemail-validate` hook [#173](https://github.com/typicode/husky/pull/173) | ||
* Add `.huskyrc` support [#209](https://github.com/typicode/husky/pull/209) | ||
* `sendemail-validate` hook [#173](https://github.com/typicode/husky/pull/173) | ||
* `HUSKY_SKIP_INSTALL` environment variable for skipping git hooks installation [#178](https://github.com/typicode/husky/pull/178) | ||
* `.huskyrc` config [#209](https://github.com/typicode/husky/pull/209) | ||
* `pnpm` support | ||
* Support environments where `yarn` is the only package manager installed | ||
* Move config from `package.json` `scripts` field to `husky` field | ||
* Prefer raw names for Git hooks (`pre-commit` rather than `precommit`) | ||
* Drop integrated `nvm` support | ||
@@ -9,0 +15,0 @@ ## 0.14.3 |
16
docs.md
@@ -80,8 +80,13 @@ # Documentation | ||
## Options | ||
## Husky options | ||
In `package.json`: | ||
```json | ||
{ | ||
"husky": { | ||
"skipCI": false | ||
"skipCI": true, | ||
"hooks": { | ||
"pre-commit": "npm test" | ||
} | ||
} | ||
@@ -97,1 +102,8 @@ } | ||
## Preventing auto-install | ||
If you don't want `husky` to automatically install Git hooks, simply set `HUSKY_SKIP_INSTALL` environment variable to `true`. | ||
``` | ||
HUSKY_SKIP_INSTALL=true npm install | ||
``` |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -85,4 +85,8 @@ "use strict"; | ||
var conf = getConf_1.default(userDir); | ||
if (process.env.HUSKY_SKIP_INSTALL === 'true') { | ||
console.log("HUSKY_SKIP_INSTALL environment variable is set to 'true',", 'skipping Git hooks installation'); | ||
return; | ||
} | ||
if (isCI && conf.skipCI) { | ||
console.log('CI detected, skipping Git hooks installation"'); | ||
console.log('CI detected, skipping Git hooks installation'); | ||
return; | ||
@@ -89,0 +93,0 @@ } |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "husky", | ||
"version": "0.15.0-beta.15", | ||
"version": "0.15.0-beta.16", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -54,3 +54,3 @@ "scripts": { | ||
"@types/jest": "^21.1.8", | ||
"@types/node": "^8.0.53", | ||
"@types/node": "^8.0.58", | ||
"crlf": "^1.1.1", | ||
@@ -63,3 +63,3 @@ "cross-env": "^5.1.1", | ||
"pkg-ok": "^1.1.0", | ||
"prettier": "^1.8.2", | ||
"prettier": "^1.9.2", | ||
"tempy": "^0.2.1", | ||
@@ -66,0 +66,0 @@ "tslint": "^5.8.0", |
@@ -1,2 +0,2 @@ | ||
# 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)](https://www.npmjs.com/package/husky) [![Mac/Linux Build Status](https://img.shields.io/travis/typicode/husky/master.svg?label=Mac%20OSX%20%26%20Linux)](https://travis-ci.org/typicode/husky) [![Windows Build status](https://img.shields.io/appveyor/ci/typicode/husky/master.svg?label=Windows)](https://ci.appveyor.com/project/typicode/husky/branch/master) | ||
# 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)](https://www.npmjs.com/package/husky) [![Mac/Linux Build Status](https://img.shields.io/travis/typicode/husky/dev.svg?label=Mac%20OSX%20%26%20Linux)](https://travis-ci.org/typicode/husky) [![Windows Build status](https://img.shields.io/appveyor/ci/typicode/husky/dev.svg?label=Windows)](https://ci.appveyor.com/project/typicode/husky/dev/master) | ||
@@ -40,3 +40,3 @@ > Git hooks made easy | ||
If you're upgrading from `0.14` simply move your hooks to `"husky"` field. | ||
If you're upgrading from `0.14`, simply move your hooks to `"husky"` field. | ||
@@ -71,3 +71,3 @@ ```diff | ||
* Supports monorepo/sub-directories layouts | ||
* If you were using `ghooks`, it will migrate your Git hooks | ||
* If you were using `ghooks`, it will automatically migrate your previous Git hooks | ||
@@ -84,3 +84,3 @@ ## Used by | ||
* [Hotel](https://github.com/typicode/hotel) | ||
* ... and over 10k+ [other awesome repos](https://libraries.io/npm/husky/dependent-repositories). | ||
* ... and 12k+ [other awesome repos](https://libraries.io/npm/husky/dependent-repositories) :tada: | ||
@@ -87,0 +87,0 @@ ## See also |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
21188
291
4