Skip to content

Commit d9f4c88

Browse files
committed
Chore: add husky
1 parent aa189ba commit d9f4c88

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"fix": "eslint lib test --fix",
1111
"prepublish": "npm run babel",
1212
"coveralls": "nyc report --reporter=text-lcov | coveralls",
13-
"babel": "babel lib --out-dir=dest"
13+
"babel": "babel lib --out-dir=dest",
14+
"prepush": "npm test"
1415
},
1516
"repository": {
1617
"type": "git",
@@ -52,6 +53,7 @@
5253
"eslint": "^3.19.0",
5354
"eslint-config-airbnb-base": "^11.1.3",
5455
"eslint-plugin-import": "^2.2.0",
56+
"husky": "^0.14.3",
5557
"nyc": "^11.2.1"
5658
}
5759
}

yarn.lock

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2367,6 +2367,14 @@ hullabaloo-config-manager@^1.1.0:
23672367
resolve-from "^3.0.0"
23682368
safe-buffer "^5.0.1"
23692369

2370+
husky@^0.14.3:
2371+
version "0.14.3"
2372+
resolved "https://registry.yarnpkg.com/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3"
2373+
dependencies:
2374+
is-ci "^1.0.10"
2375+
normalize-path "^1.0.0"
2376+
strip-indent "^2.0.0"
2377+
23702378
ignore-by-default@^1.0.0:
23712379
version "1.0.1"
23722380
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
@@ -2475,7 +2483,7 @@ is-callable@^1.1.1, is-callable@^1.1.3:
24752483
version "1.1.3"
24762484
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
24772485

2478-
is-ci@^1.0.7:
2486+
is-ci@^1.0.10, is-ci@^1.0.7:
24792487
version "1.0.10"
24802488
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e"
24812489
dependencies:
@@ -3147,6 +3155,10 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
31473155
semver "2 || 3 || 4 || 5"
31483156
validate-npm-package-license "^3.0.1"
31493157

3158+
normalize-path@^1.0.0:
3159+
version "1.0.0"
3160+
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
3161+
31503162
normalize-path@^2.0.1:
31513163
version "2.0.1"
31523164
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a"
@@ -4101,6 +4113,10 @@ strip-indent@^1.0.1:
41014113
dependencies:
41024114
get-stdin "^4.0.1"
41034115

4116+
strip-indent@^2.0.0:
4117+
version "2.0.0"
4118+
resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68"
4119+
41044120
strip-json-comments@~2.0.1:
41054121
version "2.0.1"
41064122
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"

0 commit comments

Comments
 (0)