Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update husky config #4

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed .husky/pre-commit
Empty file.
1 change: 1 addition & 0 deletions apps/frontend-v3/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged --cwd apps/frontend-v3
26 changes: 12 additions & 14 deletions apps/frontend-v3/package.json
groninge01 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "frontend-v3",
"version": "0.1.0",
"license": "MIT",
"private": true,
"license": "MIT",
"scripts": {
"dev": "concurrently \"pnpm graphql:gen --watch\" \"next dev\"",
"build": "PROTOCOL=bal pnpm graphql:gen && next build",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
"typecheck": "tsc --project tsconfig.json --noEmit",
"prepare": "husky",
"graphql:gen": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config",
"dev": "concurrently \"pnpm graphql:gen --watch\" \"next dev\"",
"gen:theme-typings": "chakra-cli tokens ./lib/shared/services/chakra/themes/bal/bal.theme.ts",
"gen:wagmi": "pnpm wagmi generate",
"graphql:gen": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config",
"postinstall": "npm run gen:theme-typings",
"lint": "next lint",
"lint:fix": "next lint --fix",
"prepare": "cd ../.. && husky apps/frontend-v3/.husky",
"start": "next start",
"test": "pnpm test:unit & pnpm run test:integration",
"test:integration": "vitest -c ./vitest.config.integration.ts",
"test:unit": "vitest",
"test:unit:coverage": "vitest --coverage",
"test:unit:silent:coverage": "SILENT_TESTS=true vitest --coverage",
"test:integration": "vitest -c ./vitest.config.integration.ts",
"postinstall": "npm run gen:theme-typings"
"typecheck": "tsc --project tsconfig.json --noEmit"
},
"dependencies": {
"@apollo/client": "^3.11.8",
Expand Down Expand Up @@ -116,8 +116,6 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"happy-dom": "^12.10.3",
"husky": "^9.1.2",
"lint-staged": "^13.2.3",
"lokijs": "^1.5.12",
"msw": "2.0.10",
"prettier": "^2.8.8",
Expand All @@ -126,8 +124,8 @@
"vitest": "^2.1.1",
"vitest-mock-extended": "^2.0.2"
},
"engineStrict": true,
"engines": {
"node": ">=18.x"
}
},
"engineStrict": true
}
16 changes: 9 additions & 7 deletions package.json
groninge01 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@
"build": "turbo build",
"build:dev": "turbo build:dev",
"dev": "turbo dev",
"graphql:gen": "turbo graphql:gen",
"lint": "turbo lint",
"lint:fix": "turbo lint:fix",
"test:unit": "turbo test:unit",
"test:integration": "turbo test:integration",
"typecheck": "turbo typecheck",
"prettier": "prettier --check '**/*.*(md|json|yaml|ts|js|tsx)' --log-level warn",
"prettier:fix": "pnpm run prettier --write",
"stylelint": "stylelint '**/*.css'",
"stylelint:fix": "pnpm run stylelint -- --fix",
"graphql:gen": "turbo graphql:gen"
"test:integration": "turbo test:integration",
"test:unit": "turbo test:unit",
"typecheck": "turbo typecheck"
},
"devDependencies": {
"concurrently": "^8.2.2",
"husky": "^9.1.2",
"lint-staged": "^13.2.3",
"prettier": "^3.2.5",
"stylelint": "^15.9.0",
"stylelint-config-standard": "^33.0.0",
"stylelint-prettier": "^3.0.0",
"turbo": "^2.1.2",
"typescript": "^5.4.5",
"concurrently": "^8.2.2"
"turbo": "^2.1.2",
"typescript": "^5.4.5"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
23 changes: 11 additions & 12 deletions pnpm-lock.yaml

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

Loading