Skip to content

Commit

Permalink
chore: add husky and fixpack
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowgate15 committed Jan 26, 2022
1 parent fc0c86f commit 7f707be
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"eslint-formatter-pretty": "^4.0.0",
"eslint-plugin-compat": "^3.9.0",
"eslint-plugin-no-smart-quotes": "^1.1.0",
"fixpack": "^4.0.0",
"get-port": "^5.1.1",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
Expand Down Expand Up @@ -90,9 +91,9 @@
},
"keywords": [
"api",
"bree",
"lad",
"lass",
"bree"
"lass"
],
"license": "Unlicensed",
"main": "index.js",
Expand Down Expand Up @@ -124,6 +125,7 @@
"build": "nps build",
"coverage": "nps coverage",
"lint": "nps lint",
"prepare": "husky install",
"pretest": "nps pretest",
"start": "nps",
"test": "nps test",
Expand Down
45 changes: 45 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,14 @@ ajv@^8.0.1:
require-from-string "^2.0.2"
uri-js "^4.2.2"

alce@1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/alce/-/alce-1.2.0.tgz#a8be2dacaac42494612f18dc09db691f3dea4aab"
integrity sha1-qL4trKrEJJRhLxjcCdtpHz3qSqs=
dependencies:
esprima "^1.2.0"
estraverse "^1.5.0"

ansi-align@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59"
Expand Down Expand Up @@ -2884,6 +2892,16 @@ detect-file@^1.0.0:
resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7"
integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=

detect-indent@^6.0.0:
version "6.1.0"
resolved "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6"
integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==

detect-newline@^3.1.0:
version "3.1.0"
resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==

diffie-hellman@^5.0.0:
version "5.0.3"
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"
Expand Down Expand Up @@ -3695,6 +3713,11 @@ espree@^7.1.0, espree@^7.2.0, espree@^7.3.0, espree@^7.3.1:
acorn-jsx "^5.3.1"
eslint-visitor-keys "^1.3.0"

esprima@^1.2.0:
version "1.2.5"
resolved "https://registry.npmjs.org/esprima/-/esprima-1.2.5.tgz#0993502feaf668138325756f30f9a51feeec11e9"
integrity sha1-CZNQL+r2aBODJXVvMPmlH+7sEek=

esprima@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
Expand All @@ -3719,6 +3742,11 @@ esrecurse@^4.3.0:
dependencies:
estraverse "^5.2.0"

estraverse@^1.5.0:
version "1.9.3"
resolved "https://registry.npmjs.org/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44"
integrity sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q=

estraverse@^4.1.1:
version "4.3.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
Expand Down Expand Up @@ -3839,6 +3867,11 @@ ext@^1.1.2:
dependencies:
type "^2.5.0"

extend-object@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/extend-object/-/extend-object-1.0.0.tgz#42514f84015d1356caf5187969dfb2bc1bda0823"
integrity sha1-QlFPhAFdE1bK9Rh5ad+yvBvaCCM=

extend-shallow@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"
Expand Down Expand Up @@ -4126,6 +4159,18 @@ fined@^1.0.1:
object.pick "^1.2.0"
parse-filepath "^1.0.1"

fixpack@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/fixpack/-/fixpack-4.0.0.tgz#28b9fb8ca04f89aab382021cfa826b36dc381dfd"
integrity sha512-5SM1+H2CcuJ3gGEwTiVo/+nd/hYpNj9Ch3iMDOQ58ndY+VGQ2QdvaUTkd3otjZvYnd/8LF/HkJ5cx7PBq0orCQ==
dependencies:
alce "1.2.0"
chalk "^3.0.0"
detect-indent "^6.0.0"
detect-newline "^3.1.0"
extend-object "^1.0.0"
rc "^1.2.8"

flagged-respawn@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-1.0.1.tgz#e7de6f1279ddd9ca9aac8a5971d618606b3aab41"
Expand Down

0 comments on commit 7f707be

Please sign in to comment.