Skip to content

Commit

Permalink
feat: add git hooks with husky and add pre-push hook (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored Aug 8, 2024
1 parent b0c067b commit 95d9b7f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm run typecheck; pnpm run lint;
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:demo": "pnpm build; pnpm --filter=./apps/demo build",
"build:examples": "pnpm build; pnpm --filter=./examples -r build",
"test": "turbo run test",
"test:static": "pnpm run typecheck; pnpm run lint; pnpm run prettier",
"coverage:merge": "node ./scripts/coverage-merge.js",
"coverage:summary": "node ./scripts/coverage-summary.js",
"typecheck": "turbo run typecheck",
Expand All @@ -30,25 +31,27 @@
"publish:latest": "pnpm install; pnpm build; changeset publish",
"publish:alpha": "pnpm install; pnpm build; changeset publish --tag alpha",
"publish:beta": "pnpm install; pnpm build; changeset publish --tag beta",
"publish:canary": "pnpm install; pnpm build; changeset publish --tag canary"
"publish:canary": "pnpm install; pnpm build; changeset publish --tag canary",
"prepare": "husky"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@vitest/coverage-v8": "1.1.2",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
"@vitest/coverage-v8": "1.1.2",
"danger": "11.3.1",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-require-extensions": "0.1.3",
"husky": "9.0.11",
"prettier": "3.1.1",
"turbo": "2.0.6-canary.0",
"typescript": "5.3.3",
"vite": "5.2.11",
"vitest": "1.5.0",
"vite-plugin-node-polyfills": "0.22.0"
"vite-plugin-node-polyfills": "0.22.0",
"vitest": "1.5.0"
},
"packageManager": "pnpm@9.5.0",
"pnpm": {
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 95d9b7f

Please sign in to comment.