Skip to content

Commit 5363602

Browse files
authored
Merge pull request #1 from JPeer264/chore/precommit
Chore: add husky for precommit hook
2 parents b560890 + 25a9552 commit 5363602

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"prepublish": "npm test",
1515
"postinstall": "npm run babel",
1616
"babel": "babel lib -d dest",
17-
"coveralls": "nyc report --reporter=text-lcov | coveralls"
17+
"coveralls": "nyc report --reporter=text-lcov | coveralls",
18+
"precommit": "npm test"
1819
},
1920
"files": [
2021
"lib"
@@ -55,6 +56,7 @@
5556
"eslint": "^3.17.1",
5657
"eslint-config-airbnb-base": "^11.1.1",
5758
"eslint-plugin-import": "^2.2.0",
59+
"husky": "^0.13.2",
5860
"nyc": "^10.1.2"
5961
},
6062
"dependencies": {

yarn.lock

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,10 @@ find-cache-dir@^0.1.1:
16001600
mkdirp "^0.5.1"
16011601
pkg-dir "^1.0.0"
16021602

1603+
find-parent-dir@^0.3.0:
1604+
version "0.3.0"
1605+
resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54"
1606+
16031607
find-up@^1.0.0, find-up@^1.1.2:
16041608
version "1.1.2"
16051609
resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
@@ -1909,6 +1913,15 @@ http-signature@~1.1.0:
19091913
jsprim "^1.2.2"
19101914
sshpk "^1.7.0"
19111915

1916+
husky@^0.13.2:
1917+
version "0.13.2"
1918+
resolved "https://registry.yarnpkg.com/husky/-/husky-0.13.2.tgz#9dcf212f88e61dba36f17be1a202ed61ff6c0661"
1919+
dependencies:
1920+
chalk "^1.1.3"
1921+
find-parent-dir "^0.3.0"
1922+
is-ci "^1.0.9"
1923+
normalize-path "^1.0.0"
1924+
19121925
ignore-by-default@^1.0.0:
19131926
version "1.0.1"
19141927
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
@@ -2020,7 +2033,7 @@ is-builtin-module@^1.0.0:
20202033
dependencies:
20212034
builtin-modules "^1.0.0"
20222035

2023-
is-ci@^1.0.7:
2036+
is-ci@^1.0.7, is-ci@^1.0.9:
20242037
version "1.0.10"
20252038
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e"
20262039
dependencies:
@@ -2661,6 +2674,10 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
26612674
semver "2 || 3 || 4 || 5"
26622675
validate-npm-package-license "^3.0.1"
26632676

2677+
normalize-path@^1.0.0:
2678+
version "1.0.0"
2679+
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
2680+
26642681
normalize-path@^2.0.1:
26652682
version "2.0.1"
26662683
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a"

0 commit comments

Comments
 (0)