Skip to content

Commit

Permalink
add kusky to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
oidacra committed Jan 27, 2024
1 parent 0a3c07d commit bada34d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on: # when does the workflow run?
push:
branches:
- main
env:
HUSKY: 0 # Disable Husky hooks

jobs:
build_and_deploy:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ permissions:
actions: read # Needed for nx-set-shas
contents: read # Needed for nx-set-shas
checks: write # Needed for GITHUB_TOKEN

env:
HUSKY: 0 # Disable Husky hooks

jobs:
build_and_preview: # name of the job
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nx format:write
nx affected -t lint,test --parallel=2
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"start": "nx serve",
"build": "nx build",
"test": "nx test"
"test": "nx test",
"postinstall": "husky"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -50,6 +51,7 @@
"eslint": "8.48.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-playwright": "^0.15.3",
"husky": "^9.0.6",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"jest-preset-angular": "13.1.4",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6268,6 +6268,11 @@ human-signals@^2.1.0:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==

husky@^9.0.6:
version "9.0.6"
resolved "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz#cee0245d60480b12279cf492ec6cfc1aeb7fa759"
integrity sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==

[email protected], iconv-lite@^0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
Expand Down

0 comments on commit bada34d

Please sign in to comment.