Skip to content

Commit 811877c

Browse files
committed
add husky and a precommit hook
1 parent 0f0903f commit 811877c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"author": "Kyle Shevlin <[email protected]> (http://kyleshevlin.com/)",
88
"license": "MIT",
99
"scripts": {
10+
"precommit": "npm run validate",
1011
"prebuild": "rimraf dist",
1112
"build": "npm-run-all --parallel build:*",
1213
"build:main": "babel --out-dir dist src",
@@ -32,6 +33,7 @@
3233
"eslint-plugin-node": "^4.2.2",
3334
"eslint-plugin-promise": "^3.5.0",
3435
"eslint-plugin-standard": "^3.0.1",
36+
"husky": "^0.13.3",
3537
"jest": "^19.0.2",
3638
"npm-run-all": "^4.0.2",
3739
"rimraf": "^2.6.1",

yarn.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,10 @@ find-cache-dir@^0.1.1:
16231623
mkdirp "^0.5.1"
16241624
pkg-dir "^1.0.0"
16251625

1626+
find-parent-dir@^0.3.0:
1627+
version "0.3.0"
1628+
resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54"
1629+
16261630
find-up@^1.0.0:
16271631
version "1.1.2"
16281632
resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
@@ -1907,6 +1911,15 @@ [email protected]:
19071911
version "0.0.1"
19081912
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82"
19091913

1914+
husky@^0.13.3:
1915+
version "0.13.3"
1916+
resolved "https://registry.yarnpkg.com/husky/-/husky-0.13.3.tgz#bc2066080badc8b8fe3516e881f5bc68a57052ff"
1917+
dependencies:
1918+
chalk "^1.1.3"
1919+
find-parent-dir "^0.3.0"
1920+
is-ci "^1.0.9"
1921+
normalize-path "^1.0.0"
1922+
19101923
19111924
version "0.4.13"
19121925
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2"
@@ -2768,6 +2781,10 @@ normalize-package-data@^2.3.2:
27682781
semver "2 || 3 || 4 || 5"
27692782
validate-npm-package-license "^3.0.1"
27702783

2784+
normalize-path@^1.0.0:
2785+
version "1.0.0"
2786+
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
2787+
27712788
normalize-path@^2.0.1:
27722789
version "2.1.1"
27732790
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"

0 commit comments

Comments
 (0)