Skip to content

Commit 18946e3

Browse files
author
Alexandru Badiu
committed
fix(build): Replace ghooks.
Replace ghooks with husky.
1 parent fd87912 commit 18946e3

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
},
1717
"main": "dist/index.js",
1818
"scripts": {
19+
"precommit": "npm test",
20+
"prepush": "npm test",
1921
"prebuild": "rm -rf dist && mkdir dist && mkdir dist/plugins",
2022
"build": "babel src -d dist",
2123
"watch": "babel -w src -d dist",
@@ -60,6 +62,7 @@
6062
"eslint": "3.19.0",
6163
"eslint-config-airbnb-base": "11.2.0",
6264
"eslint-plugin-import": "2.3.0",
65+
"husky": "^0.13.4",
6366
"mocha": "^3.4.2",
6467
"nyc": "^11.0.2",
6568
"semantic-release": "^6.3.6"

yarn.lock

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,10 @@ chokidar@^1.6.1:
926926
optionalDependencies:
927927
fsevents "^1.0.0"
928928

929+
ci-info@^1.0.0:
930+
version "1.0.0"
931+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.0.tgz#dc5285f2b4e251821683681c381c3388f46ec534"
932+
929933
circular-json@^0.3.1:
930934
version "0.3.1"
931935
resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d"
@@ -1159,7 +1163,7 @@ debug-log@^1.0.1:
11591163
version "1.0.1"
11601164
resolved "https://registry.yarnpkg.com/debug-log/-/debug-log-1.0.1.tgz#2307632d4c04382b8df8a32f70b895046d52745f"
11611165

1162-
debug@2, debug@^2.2.0, debug@^2.6.3:
1166+
debug@2, debug@^2.6.3:
11631167
version "2.6.8"
11641168
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
11651169
dependencies:
@@ -1171,7 +1175,7 @@ [email protected]:
11711175
dependencies:
11721176
ms "0.7.1"
11731177

1174-
[email protected], debug@^2.1.1:
1178+
[email protected], debug@^2.1.1, debug@^2.2.0:
11751179
version "2.6.0"
11761180
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b"
11771181
dependencies:
@@ -1619,6 +1623,10 @@ find-index@^0.1.1:
16191623
version "0.1.1"
16201624
resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4"
16211625

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+
16221630
find-up@^1.0.0:
16231631
version "1.1.2"
16241632
resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
@@ -2228,6 +2236,15 @@ https-proxy-agent@^1.0.0:
22282236
debug "2"
22292237
extend "3"
22302238

2239+
husky@^0.13.4:
2240+
version "0.13.4"
2241+
resolved "https://registry.yarnpkg.com/husky/-/husky-0.13.4.tgz#48785c5028de3452a51c48c12c4f94b2124a1407"
2242+
dependencies:
2243+
chalk "^1.1.3"
2244+
find-parent-dir "^0.3.0"
2245+
is-ci "^1.0.9"
2246+
normalize-path "^1.0.0"
2247+
22312248
ignore@^3.2.0:
22322249
version "3.3.3"
22332250
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.3.tgz#432352e57accd87ab3110e82d3fea0e47812156d"
@@ -2349,6 +2366,12 @@ is-builtin-module@^1.0.0:
23492366
dependencies:
23502367
builtin-modules "^1.0.0"
23512368

2369+
is-ci@^1.0.9:
2370+
version "1.0.10"
2371+
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e"
2372+
dependencies:
2373+
ci-info "^1.0.0"
2374+
23522375
is-dotfile@^1.0.0:
23532376
version "1.0.3"
23542377
resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
@@ -3144,6 +3167,10 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, "normalize-package
31443167
semver "2 || 3 || 4 || 5"
31453168
validate-npm-package-license "^3.0.1"
31463169

3170+
normalize-path@^1.0.0:
3171+
version "1.0.0"
3172+
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
3173+
31473174
normalize-path@^2.0.1:
31483175
version "2.1.1"
31493176
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"

0 commit comments

Comments
 (0)