Skip to content

Commit c549518

Browse files
committed
feat:common-configuration-#85-Husky
1 parent d0f1f26 commit c549518

4 files changed

Lines changed: 60 additions & 124 deletions

File tree

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"test": "jest",
1919
"prettify": "prettier --write \"platform/firecamp-platform/src/**/*.(ts|tsx)\" \"packages/firecamp-rest/src/**/*.(ts|tsx)\" \"packages/firecamp-graphql/src/**/*.(ts|tsx)\"",
2020
"precommit": "lint-staged",
21-
"preinstall": "npx only-allow pnpm"
21+
"preinstall": "npx only-allow pnpm",
22+
"pre-commit": "pnpm run --filter \"@platform/*\" pre-commit",
23+
"prepare": "husky install"
2224
},
2325
"lint-staged": {
2426
"**/*.ts": [
@@ -72,7 +74,7 @@
7274
"eslint-plugin-react": "^7.20.5",
7375
"file-loader": "^6.2.0",
7476
"html-webpack-plugin": "^5.5.0",
75-
"husky": "^8.0.1",
77+
"husky": "^8.0.3",
7678
"ignore-loader": "^0.1.2",
7779
"jest-css-modules": "^2.1.0",
7880
"jest-css-modules-transform": "^4.4.2",

platform/firecamp-platform/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json",
4040
"version": "standard-version",
4141
"reset-hard": "git clean -dfx && git reset --hard && npm i",
42-
"prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish"
42+
"prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish",
43+
"pre-commit": "lint-staged"
4344
},
4445
"engines": {
4546
"node": ">=10"

platform/firecamp-ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"chromatic": "npx chromatic --project-token=4db217014cde004",
3535
"build": "cross-env BABEL_ENV=production babel src -d dist && tsc && pnpm copy-files",
3636
"copy-files": "copyfiles -u 1 \"src/**/*.sass\" \"src/**/*.scss\" \"src/**/*.css\" dist/",
37-
"storybook:deploy": "pnpm chromatic --project-token=$(grep 'FIRECAMP_STORYBOOK_DEPLOY' ../../.env | cut -d '=' -f 2)"
37+
"storybook:deploy": "pnpm chromatic --project-token=$(grep 'FIRECAMP_STORYBOOK_DEPLOY' ../../.env | cut -d '=' -f 2)",
38+
"pre-commit": "lint-staged"
3839
},
3940
"bugs": {
4041
"url": "https://github.com/firecamp-dev/firecamp/issues"

pnpm-lock.yaml

Lines changed: 52 additions & 120 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)