Skip to content

Commit 122c289

Browse files
committed
Update git hooks
1 parent 7ba95d7 commit 122c289

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-push

100755100644
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
yarn build --lint --tsc
1+
yarn workspaces foreach -ptR -j 5 --since --include "./src/{bundles,tabs}/*" run build --tsc --lint
2+
yarn workspaces foreach -ptR -j 5 --since --include "./src/{bundles,tabs}/*" run test
3+
yarn workspaces foreach -ptW --since --include "./{lib,devserver}/*" run lint
4+
yarn workspaces foreach -ptW --since --include "./{lib,devserver}/*" run tsc
5+
yarn workspaces foreach -ptW --since --include "./{lib,devserver}/*" run test

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,27 @@
99
"build:docs": "Build all documentation for all bundles",
1010
"build:libs": "Build all module library code",
1111
"build:modules": "Build all bundles, tabs and documentation",
12+
"devserver": "Run the modules development server",
1213
"lint:all": "Lint all code in the repository",
1314
"lint:inspect": "Run the interactive ESLint config inspector",
1415
"prepare": "Enable git hooks",
1516
"serve": "Start the HTTP server to serve all files in `build/`, with the same directory structure",
1617
"template": "Interactively initialise a new bundle or tab from their templates",
1718
"test:all": "Run unit tests for the entire repository",
19+
"test:libs": "Run unit tests for libraries",
1820
"test:modules": "Run unit tests for tabs and bundles",
1921
"tsc:all": "Run the Typescript compiler for all code in the repository",
22+
"tsc:devserver": "Run the Typescript compiler for the devserver",
2023
"tsc:modules": "Run the Typescript compiler for bundle and tabs only"
2124
},
2225
"scripts": {
2326
"build:docs": "buildtools build docs",
2427
"build:libs": "yarn workspaces foreach -ptW --from \"./lib/*\" run build",
2528
"build:modules": "buildtools build all",
2629
"devserver": "devserver",
27-
"lint:all": "eslint src lib devserver",
30+
"lint:all": "eslint lib devserver && yarn lint:modules",
2831
"lint:inspect": "yarn dlx eslint --inspect-config",
2932
"lint:modules": "yarn workspaces foreach -j 5 -pW --from \"./src/{bundles,tabs}\" run lint",
30-
"preinstall": "yarn build:libs",
3133
"prepare": "husky",
3234
"serve": "http-server --cors=* -c-1 -p 8022 ./build",
3335
"template": "buildtools template",
@@ -58,7 +60,7 @@
5860
"eslint-plugin-react-hooks": "^5.1.0",
5961
"eslint-plugin-vitest": "^0.5.4",
6062
"http-server": "^0.13.0",
61-
"husky": "^9.0.11",
63+
"husky": "^9.1.7",
6264
"jsdom": "^26.1.0",
6365
"jsonc-eslint-parser": "^2.4.0",
6466
"typescript": "^5.8.2",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,7 +2628,7 @@ __metadata:
26282628
eslint-plugin-react-hooks: "npm:^5.1.0"
26292629
eslint-plugin-vitest: "npm:^0.5.4"
26302630
http-server: "npm:^0.13.0"
2631-
husky: "npm:^9.0.11"
2631+
husky: "npm:^9.1.7"
26322632
js-slang: "npm:^1.0.81"
26332633
jsdom: "npm:^26.1.0"
26342634
jsonc-eslint-parser: "npm:^2.4.0"
@@ -6973,7 +6973,7 @@ __metadata:
69736973
languageName: node
69746974
linkType: hard
69756975

6976-
"husky@npm:^9.0.11":
6976+
"husky@npm:^9.1.7":
69776977
version: 9.1.7
69786978
resolution: "husky@npm:9.1.7"
69796979
bin:

0 commit comments

Comments
 (0)