Skip to content

Commit

Permalink
Added husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
IronTony committed May 31, 2021
1 parent ba5999b commit 365366c
Show file tree
Hide file tree
Showing 4 changed files with 656 additions and 39 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/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 && yarn dependencies:checkCircular && yarn dependencies:graph
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js",
"lint": "eslint ./src",
"lint:staged": "pretty-quick --staged && lint-staged",
"dependencies:checkCircular": "madge src/ --circular",
"dependencies:graph": "madge src/ --circular --image deps-graph.svg",
"start:development": "env-cmd -f src/env/.env.development yarn start",
"build:development": "env-cmd -f src/env/.env.development yarn build",
"build:staging": "env-cmd -f src/env/.env.staging yarn build",
"build:production": "env-cmd -f src/env/.env.production yarn build"
"build:production": "env-cmd -f src/env/.env.production yarn build",
"prepare": "husky install"
},
"dependencies": {
"@babel/core": "7.12.3",
Expand Down Expand Up @@ -66,7 +68,7 @@
"i18next-browser-languagedetector": "6.1.1",
"identity-obj-proxy": "3.0.0",
"jest": "26.6.0",
"jest-circus": "26.6.0",
"jest-circus": "^27.0.3",
"jest-resolve": "26.6.0",
"jest-watch-typeahead": "0.6.1",
"lodash": "4.17.21",
Expand Down Expand Up @@ -165,7 +167,7 @@
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
"testEnvironment": "jsdom",
"testRunner": "/Users/irontony/Desktop/my-app/node_modules/jest-circus/runner.js",
"testRunner": "<rootDir>/node_modules/jest-circus/runner.js",
"transform": {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
Expand Down
Loading

0 comments on commit 365366c

Please sign in to comment.