Skip to content

Commit

Permalink
feat(build-main): adapt husky configuration after husky upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperITMan committed Jun 8, 2021
1 parent a070a59 commit b784013
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
NPM_VERSION: "7.12.1"
LOGS_DIR: /tmp/stark/logs
LOGS_FILE: /tmp/stark/logs/build-perf.log
HUSKY_SKIP_INSTALL: true
HUSKY: 0

jobs:
build-and-test:
Expand Down
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"

./node_modules/.bin/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"

./node_modules/.bin/lint-staged && npm run docs:coverage
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
"install:ci:showcase": "cd showcase && npm ci && cd ..",
"ng": "ng",
"ngc": "ngc",
"postinstall": "husky install",
"prettier-check": "prettier \"**/*.{css,html,js,json,md,pcss,scss,ts,yml}\" --write --html-whitespace-sensitivity strict",
"preupdate:showcase": "npm run clean:showcase",
"preupdate:starter": "npm run clean:starter",
Expand Down Expand Up @@ -238,12 +239,6 @@
"update:showcase": "npm run clean:showcase && npm run install:showcase",
"update:starter": "npm run clean:starter && npm run install:starter"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged && npm run docs:coverage"
}
},
"lint-staged": {
"*.{css,html,js,json,md,pcss,scss,ts,yml}": [
"prettier --write --html-whitespace-sensitivity strict"
Expand Down

0 comments on commit b784013

Please sign in to comment.