Skip to content

Commit 6de2b62

Browse files
authored
Replaced husky with simple-git-hooks (#911)
* replaced husky with simple-git-hooks * moved pnpm release placeholder * cleaned up unused files
1 parent 38cc344 commit 6de2b62

File tree

9 files changed

+18
-101
lines changed

9 files changed

+18
-101
lines changed

.dangerfile.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.node-version

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

.nvmrc

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

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"git.pullTags": false,
3-
"conventionalCommits.scopes": ["styled", "headless", "docs"],
43
"tailwindCSS.experimental.classRegex": [
54
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
65
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
"dev": "nx serve website --host",
1818
"dev.ct": "nx serve component-tests",
1919
"format.all": "prettier --write \"**/*.{js,jsx,ts,tsx,json,html,css,scss}\"",
20-
"format.fix": "pretty-quick --staged",
20+
"format.staged": "pretty-quick --staged",
2121
"link.dist": "cd dist/packages/kit-headless && pnpm link --global",
2222
"lint": "nx affected:lint",
2323
"local.npm": "nx local-registry",
24-
"prepare": "husky install",
24+
"prepare": "simple-git-hooks",
2525
"preview.cloudflare": "nx preview-cloudflare website",
2626
"preview": "nx preview website",
2727
"release.prepare": "nx run-many --target=build -p packages/*",
28-
"release.setroot": "mv pnpm-workspace.yaml dist/pnpm-workspace.yaml && cp pnpm-workspace-for-release.yaml pnpm-workspace.yaml",
28+
"release.setroot": "mv pnpm-workspace.yaml dist/pnpm-workspace.yaml && cp tools/for-release/pnpm-workspace-for-release.yaml pnpm-workspace.yaml",
2929
"release": "pnpm release.prepare && pnpm release.setroot && pnpm release.publish && pnpm release.resetroot",
3030
"release.publish": "changeset publish",
3131
"release.resetroot": "cp dist/pnpm-workspace.yaml pnpm-workspace.yaml",
@@ -38,6 +38,9 @@
3838
"test.headless.ci": "nx component-test-ci headless",
3939
"test.utils": "nx test utils"
4040
},
41+
"simple-git-hooks": {
42+
"pre-commit": "pnpm format.staged"
43+
},
4144
"packageManager": "[email protected]",
4245
"devDependencies": {
4346
"@axe-core/playwright": "^4.9.1",
@@ -104,7 +107,6 @@
104107
"eslint-plugin-playwright": "^1.6.2",
105108
"eslint-plugin-qwik": "^1.7.2",
106109
"focus-trap": "7.5.4",
107-
"husky": "^9.0.11",
108110
"jest": "^29.7.0",
109111
"jest-environment-jsdom": "^29.7.0",
110112
"jsdom": "24.0.0",
@@ -122,6 +124,7 @@
122124
"rehype-pretty-code": "^0.13.2",
123125
"sass": "^1.77.2",
124126
"shiki": "1.11.0",
127+
"simple-git-hooks": "2.11.1",
125128
"specificity": "^1.0.0",
126129
"tailwind-merge": "^2.3.0",
127130
"tailwindcss": "^3.4.3",
@@ -143,11 +146,6 @@
143146
"wrangler": "^3.57.1",
144147
"yargs": "^17.7.2"
145148
},
146-
"config": {
147-
"commitizen": {
148-
"path": "./node_modules/cz-conventional-changelog"
149-
}
150-
},
151149
"keywords": [
152150
"qwik",
153151
"qwik ui components",

pnpm-lock.yaml

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

tools/scripts/release.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)