Comparing version 1.3.2 to 2.0.0
@@ -5,10 +5,8 @@ 'use strict'; | ||
var _require = require('path'); | ||
var _require = require('path'), | ||
resolve = _require.resolve, | ||
join = _require.join; | ||
var resolve = _require.resolve; | ||
var join = _require.join; | ||
exports.generatedMessage = 'Generated by ghooks. Do not edit this file.'; | ||
exports.content = fs.readFileSync(resolve(__dirname + '/hook.template.raw'), 'UTF-8').replace('{{generated_message}}', exports.generatedMessage).replace('{{node_modules_path}}', join(process.cwd(), '..').replace(/\\/g, '\\\\')); |
@@ -7,7 +7,6 @@ 'use strict'; | ||
var _require = require('path'); | ||
var _require = require('path'), | ||
resolve = _require.resolve, | ||
basename = _require.basename; | ||
var resolve = _require.resolve; | ||
var basename = _require.basename; | ||
var findup = require('findup'); | ||
@@ -14,0 +13,0 @@ var fs = require('fs'); |
{ | ||
"name": "ghooks", | ||
"description": "Simple git hooks", | ||
"version": "1.3.2", | ||
"version": "2.0.0", | ||
"main": "./dist/runner.js", | ||
@@ -52,11 +52,11 @@ "keywords": [ | ||
"commitizen": "2.8.1", | ||
"cz-conventional-changelog": "1.1.6", | ||
"cz-conventional-changelog": "1.2.0", | ||
"eslint": "^2.10.2", | ||
"eslint-config-kentcdodds": "^6.2.1", | ||
"eslint-plugin-import": "^1.8.0", | ||
"eslint-plugin-mocha": "^3.0.0", | ||
"eslint-plugin-mocha": "^4.3.0", | ||
"ghooks": "*", | ||
"mocha": "^2.1.0", | ||
"mocha": "^3.0.0", | ||
"mock-fs": "^3.0.0", | ||
"nyc": "^6.4.0", | ||
"nyc": "^7.0.0", | ||
"proxyquire": "^1.3.1", | ||
@@ -63,0 +63,0 @@ "semantic-release": "^4.3.5", |
@@ -0,1 +1,3 @@ | ||
## note: this project is deprecated in favor of [husky](https://github.com/typicode/husky) ( read more [#166](https://github.com/gtramontina/ghooks/issues/166) ) | ||
# ghooks | ||
@@ -5,2 +7,3 @@ | ||
[![travis build](https://img.shields.io/travis/gtramontina/ghooks.svg?style=flat-square)](https://travis-ci.org/gtramontina/ghooks) | ||
[![AppVeyor](https://img.shields.io/appveyor/ci/gtramontina/ghooks.svg?style=flat-square)](https://ci.appveyor.com/project/gtramontina/ghooks) | ||
[![codecov coverage](https://img.shields.io/codecov/c/github/gtramontina/ghooks.svg?style=flat-square)](https://codecov.io/github/gtramontina/ghooks) | ||
@@ -49,2 +52,8 @@ [![Dependencies status](https://img.shields.io/david/gtramontina/ghooks.svg?style=flat-square)](https://david-dm.org/gtramontina/ghooks#info=dependencies) | ||
**Note:** _The hooks' working directory is relative to the git root (where you have your `.git` directory). This means that if your package.json is in a subdirectory of your git repo, you'll need to cd into the directory before running any npm scripts. E.g.:_ | ||
```json | ||
"pre-commit": "cd path/to/folder && npm run test" | ||
``` | ||
## opt-in/out | ||
@@ -51,0 +60,0 @@ |
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
31607
12
95