Skip to content

Commit 0269709

Browse files
author
Mike Nason
committed
Switch from ghooks to husky
1 parent 1ccf8a2 commit 0269709

File tree

2 files changed

+34
-108
lines changed

2 files changed

+34
-108
lines changed

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,9 @@
4343
"pretest": "npm run bundle",
4444
"preversion": "npm run dist; git add API.md",
4545
"version": "auto-changelog --template compact --package; git add CHANGELOG.md",
46-
"release": "np"
47-
},
48-
"config": {
49-
"ghooks": {
50-
"pre-commit": "npm run lint",
51-
"pre-push": "npm run security-scan"
52-
}
46+
"release": "np",
47+
"precommit": "npm run lint",
48+
"prepush": "npm run security-scan"
5349
},
5450
"repository": {
5551
"type": "git",
@@ -70,7 +66,7 @@
7066
"bunyan"
7167
],
7268
"dependencies": {
73-
"bunyan": "^1.8.10",
69+
"bunyan": "^1.8.12",
7470
"bunyan-format": "^0.2.1",
7571
"console": "0.5.2",
7672
"hide-secrets": "1.1.0",
@@ -99,7 +95,7 @@
9995
"eslint-config-wework": "3.0.0",
10096
"eslint-friendly-formatter": "2.0.7",
10197
"express": "4.16.2",
102-
"ghooks": "2.0.0",
98+
"husky": "0.14.3",
10399
"imports-loader": "0.7.1",
104100
"json-loader": "0.5.7",
105101
"karma": "1.7.1",

yarn.lock

Lines changed: 29 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ bunyan-format@^0.2.1:
14021402
ansistyles "~0.1.1"
14031403
xtend "~2.1.1"
14041404

1405-
bunyan@^1.8.10:
1405+
bunyan@^1.8.12:
14061406
version "1.8.12"
14071407
resolved "https://registry.yarnpkg.com/bunyan/-/bunyan-1.8.12.tgz#f150f0f6748abdd72aeae84f04403be2ef113797"
14081408
optionalDependencies:
@@ -1558,6 +1558,10 @@ chokidar@^1.0.0, chokidar@^1.2.0, chokidar@^1.4.1, chokidar@^1.7.0:
15581558
optionalDependencies:
15591559
fsevents "^1.0.0"
15601560

1561+
ci-info@^1.0.0:
1562+
version "1.1.1"
1563+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.1.tgz#47b44df118c48d2597b56d342e7e25791060171a"
1564+
15611565
circular-json@^0.3.1:
15621566
version "0.3.3"
15631567
resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66"
@@ -1695,10 +1699,6 @@ colors@^1.1.0, colors@^1.1.2:
16951699
version "1.1.2"
16961700
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
16971701

1698-
colors@~0.6.0-1:
1699-
version "0.6.2"
1700-
resolved "https://registry.yarnpkg.com/colors/-/colors-0.6.2.tgz#2423fe6678ac0c5dae8852e5d0e5be08c997abcc"
1701-
17021702
combine-lists@^1.0.0:
17031703
version "1.0.1"
17041704
resolved "https://registry.yarnpkg.com/combine-lists/-/combine-lists-1.0.1.tgz#458c07e09e0d900fc28b70a3fec2dacd1d2cb7f6"
@@ -1721,16 +1721,6 @@ commander@2.11.0, commander@^2.9.0:
17211721
version "2.11.0"
17221722
resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563"
17231723

1724-
commander@2.9.0:
1725-
version "2.9.0"
1726-
resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4"
1727-
dependencies:
1728-
graceful-readlink ">= 1.0.0"
1729-
1730-
commander@~2.1.0:
1731-
version "2.1.0"
1732-
resolved "https://registry.yarnpkg.com/commander/-/commander-2.1.0.tgz#d121bbae860d9992a3d517ba96f56588e47c6781"
1733-
17341724
commondir@^1.0.1:
17351725
version "1.0.1"
17361726
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
@@ -1889,13 +1879,6 @@ create-error-class@^3.0.0:
18891879
dependencies:
18901880
capture-stack-trace "^1.0.0"
18911881

1892-
cross-spawn-async@^2.1.1:
1893-
version "2.2.5"
1894-
resolved "https://registry.yarnpkg.com/cross-spawn-async/-/cross-spawn-async-2.2.5.tgz#845ff0c0834a3ded9d160daca6d390906bb288cc"
1895-
dependencies:
1896-
lru-cache "^4.0.0"
1897-
which "^1.2.8"
1898-
18991882
cross-spawn@^4:
19001883
version "4.0.2"
19011884
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
@@ -2664,17 +2647,6 @@ events@^1.0.0:
26642647
version "1.1.1"
26652648
resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"
26662649

2667-
execa@^0.4.0:
2668-
version "0.4.0"
2669-
resolved "https://registry.yarnpkg.com/execa/-/execa-0.4.0.tgz#4eb6467a36a095fabb2970ff9d5e3fb7bce6ebc3"
2670-
dependencies:
2671-
cross-spawn-async "^2.1.1"
2672-
is-stream "^1.1.0"
2673-
npm-run-path "^1.0.0"
2674-
object-assign "^4.0.1"
2675-
path-key "^1.0.0"
2676-
strip-eof "^1.0.0"
2677-
26782650
execa@^0.6.3:
26792651
version "0.6.3"
26802652
resolved "https://registry.yarnpkg.com/execa/-/execa-0.6.3.tgz#57b69a594f081759c69e5370f0d17b9cb11658fe"
@@ -2953,13 +2925,6 @@ find@^0.2.4:
29532925
dependencies:
29542926
traverse-chain "~0.1.0"
29552927

2956-
findup@0.1.5:
2957-
version "0.1.5"
2958-
resolved "https://registry.yarnpkg.com/findup/-/findup-0.1.5.tgz#8ad929a3393bac627957a7e5de4623b06b0e2ceb"
2959-
dependencies:
2960-
colors "~0.6.0-1"
2961-
commander "~2.1.0"
2962-
29632928
first-chunk-stream@^1.0.0:
29642929
version "1.0.0"
29652930
resolved "https://registry.yarnpkg.com/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz#59bfb50cd905f60d7c394cd3d9acaab4e6ad934e"
@@ -3139,18 +3104,6 @@ getpass@^0.1.1:
31393104
dependencies:
31403105
assert-plus "^1.0.0"
31413106

3142-
ghooks@2.0.0:
3143-
version "2.0.0"
3144-
resolved "https://registry.yarnpkg.com/ghooks/-/ghooks-2.0.0.tgz#affd83a36e8b8fbdded9b851457c48ac74c8eab8"
3145-
dependencies:
3146-
execa "^0.4.0"
3147-
findup "0.1.5"
3148-
lodash.clone "4.3.2"
3149-
manage-path "2.0.0"
3150-
opt-cli "1.5.1"
3151-
path-exists "^2.0.0"
3152-
spawn-command "0.0.2"
3153-
31543107
git-up@^2.0.0:
31553108
version "2.0.9"
31563109
resolved "https://registry.yarnpkg.com/git-up/-/git-up-2.0.9.tgz#219bfd27c82daeead8495beb386dc18eae63636d"
@@ -3279,10 +3232,6 @@ graceful-fs@^4.0.0, graceful-fs@^4.1.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2,
32793232
version "4.1.11"
32803233
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
32813234

3282-
"graceful-readlink@>= 1.0.0":
3283-
version "1.0.1"
3284-
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
3285-
32863235
growl@1.10.3:
32873236
version "1.10.3"
32883237
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.3.tgz#1926ba90cf3edfe2adb4927f5880bc22c66c790f"
@@ -3556,6 +3505,14 @@ https-proxy-agent@^2.1.0:
35563505
agent-base "^4.1.0"
35573506
debug "^2.4.1"
35583507

3508+
husky@0.14.3:
3509+
version "0.14.3"
3510+
resolved "https://registry.yarnpkg.com/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3"
3511+
dependencies:
3512+
is-ci "^1.0.10"
3513+
normalize-path "^1.0.0"
3514+
strip-indent "^2.0.0"
3515+
35593516
iconv-lite@0.4.19, iconv-lite@^0.4.17:
35603517
version "0.4.19"
35613518
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
@@ -3709,6 +3666,12 @@ is-callable@^1.1.1, is-callable@^1.1.3:
37093666
version "1.1.3"
37103667
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
37113668

3669+
is-ci@^1.0.10:
3670+
version "1.0.10"
3671+
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e"
3672+
dependencies:
3673+
ci-info "^1.0.0"
3674+
37123675
is-data-descriptor@^0.1.4:
37133676
version "0.1.4"
37143677
resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
@@ -4451,16 +4414,6 @@ locate-path@^2.0.0:
44514414
p-locate "^2.0.0"
44524415
path-exists "^3.0.0"
44534416

4454-
lodash._baseclone@~4.5.0:
4455-
version "4.5.7"
4456-
resolved "https://registry.yarnpkg.com/lodash._baseclone/-/lodash._baseclone-4.5.7.tgz#ce42ade08384ef5d62fa77c30f61a46e686f8434"
4457-
4458-
lodash.clone@4.3.2:
4459-
version "4.3.2"
4460-
resolved "https://registry.yarnpkg.com/lodash.clone/-/lodash.clone-4.3.2.tgz#e56b176b6823a7dde38f7f2bf58de7d5971200e9"
4461-
dependencies:
4462-
lodash._baseclone "~4.5.0"
4463-
44644417
lodash.cond@^4.3.0:
44654418
version "4.5.2"
44664419
resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5"
@@ -4556,7 +4509,7 @@ lru-cache@2.2.x, lru-cache@~2.2.1:
45564509
version "2.2.4"
45574510
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.2.4.tgz#6c658619becf14031d0d0b594b16042ce4dc063d"
45584511

4559-
lru-cache@^4.0.0, lru-cache@^4.0.1:
4512+
lru-cache@^4.0.1:
45604513
version "4.1.1"
45614514
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55"
45624515
dependencies:
@@ -4575,10 +4528,6 @@ make-dir@^1.0.0:
45754528
dependencies:
45764529
pify "^3.0.0"
45774530

4578-
manage-path@2.0.0:
4579-
version "2.0.0"
4580-
resolved "https://registry.yarnpkg.com/manage-path/-/manage-path-2.0.0.tgz#f4cf8457b926eeee2a83b173501414bc76eb9597"
4581-
45824531
map-cache@^0.2.0, map-cache@^0.2.2:
45834532
version "0.2.2"
45844533
resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
@@ -4997,6 +4946,10 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
49974946
semver "2 || 3 || 4 || 5"
49984947
validate-npm-package-license "^3.0.1"
49994948

4949+
normalize-path@^1.0.0:
4950+
version "1.0.0"
4951+
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
4952+
50004953
normalize-path@^2.0.0, normalize-path@^2.0.1:
50014954
version "2.1.1"
50024955
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
@@ -5037,12 +4990,6 @@ npm-run-all@4.1.1:
50374990
shell-quote "^1.6.1"
50384991
string.prototype.padend "^3.0.0"
50394992

5040-
npm-run-path@^1.0.0:
5041-
version "1.0.0"
5042-
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-1.0.0.tgz#f5c32bf595fe81ae927daec52e82f8b000ac3c8f"
5043-
dependencies:
5044-
path-key "^1.0.0"
5045-
50464993
npm-run-path@^2.0.0:
50474994
version "2.0.2"
50484995
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
@@ -5181,15 +5128,6 @@ onetime@^2.0.0:
51815128
dependencies:
51825129
mimic-fn "^1.0.0"
51835130

5184-
opt-cli@1.5.1:
5185-
version "1.5.1"
5186-
resolved "https://registry.yarnpkg.com/opt-cli/-/opt-cli-1.5.1.tgz#04db447b13c96b992eb31685266f4ed0d9736dc2"
5187-
dependencies:
5188-
commander "2.9.0"
5189-
lodash.clone "4.3.2"
5190-
manage-path "2.0.0"
5191-
spawn-command "0.0.2-1"
5192-
51935131
optimist@^0.6.1, optimist@~0.6.0:
51945132
version "0.6.1"
51955133
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
@@ -5391,10 +5329,6 @@ path-is-inside@^1.0.1, path-is-inside@^1.0.2:
53915329
version "1.0.2"
53925330
resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
53935331

5394-
path-key@^1.0.0:
5395-
version "1.0.0"
5396-
resolved "https://registry.yarnpkg.com/path-key/-/path-key-1.0.0.tgz#5d53d578019646c0d68800db4e146e6bdc2ac7af"
5397-
53985332
path-key@^2.0.0:
53995333
version "2.0.1"
54005334
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
@@ -6550,14 +6484,6 @@ space-separated-tokens@^1.0.0:
65506484
dependencies:
65516485
trim "0.0.1"
65526486

6553-
spawn-command@0.0.2:
6554-
version "0.0.2"
6555-
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2.tgz#9544e1a43ca045f8531aac1a48cb29bdae62338e"
6556-
6557-
spawn-command@0.0.2-1:
6558-
version "0.0.2-1"
6559-
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0"
6560-
65616487
spawn-wrap@=1.3.8:
65626488
version "1.3.8"
65636489
resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-1.3.8.tgz#fa2a79b990cbb0bb0018dca6748d88367b19ec31"
@@ -6789,6 +6715,10 @@ strip-indent@^1.0.1:
67896715
dependencies:
67906716
get-stdin "^4.0.1"
67916717

6718+
strip-indent@^2.0.0:
6719+
version "2.0.0"
6720+
resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68"
6721+
67926722
strip-json-comments@^2.0.0, strip-json-comments@~2.0.1:
67936723
version "2.0.1"
67946724
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
@@ -7497,7 +7427,7 @@ which-module@^2.0.0:
74977427
version "2.0.0"
74987428
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
74997429

7500-
which@^1.1.1, which@^1.2.10, which@^1.2.4, which@^1.2.8, which@^1.2.9:
7430+
which@^1.1.1, which@^1.2.10, which@^1.2.4, which@^1.2.9:
75017431
version "1.3.0"
75027432
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
75037433
dependencies:

0 commit comments

Comments
 (0)