Skip to content

Commit

Permalink
chore: Simplify graphql:gen
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Sep 19, 2024
1 parent e5536aa commit 8091edf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ runs:

- name: Generate api typings
shell: bash
run: pnpm graphql:gen:prod
run: pnpm graphql:gen
3 changes: 0 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ jobs:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Generate api typings
shell: bash
run: pnpm graphql:gen:prod
- name: Run typecheck
run: pnpm typecheck
- name: Run unit tests
Expand Down
9 changes: 3 additions & 6 deletions apps/frontend-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
"license": "MIT",
"private": true,
"scripts": {
"dev": "concurrently \"pnpm graphql:gen:dev --watch\" \"next dev\"",
"dev-bal": "PROTOCOL=bal pnpm dev",
"build": "PROTOCOL=bal pnpm graphql:gen:prod && next build",
"build:dev": "PROTOCOL=bal pnpm graphql:gen:dev && next build",
"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 --noEmit",
"prepare": "husky",
"graphql:gen:dev": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config",
"graphql:gen:prod": "DOTENV_CONFIG_PATH=./.env graphql-codegen -r dotenv/config",
"graphql:gen": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config",
"gen:theme-typings": "chakra-cli tokens ./lib/shared/services/chakra/themes/bal/bal.theme.ts",
"gen:wagmi": "pnpm wagmi generate",
"test": "pnpm test:unit & pnpm run test:integration",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mono",
"name": "@balancer/frontend-monorepo",
"private": true,
"scripts": {
"build": "turbo build",
Expand All @@ -14,7 +14,7 @@
"prettier:fix": "pnpm run prettier --write",
"stylelint": "stylelint '**/*.css'",
"stylelint:fix": "pnpm run stylelint -- --fix",
"graphql:gen:prod": "turbo graphql:gen:prod"
"graphql:gen": "turbo graphql:gen"
},
"devDependencies": {
"prettier": "^3.2.5",
Expand Down
4 changes: 2 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"test:integration": {
"dependsOn": ["build", "^test:integration"]
},
"graphql:gen:prod": {
"dependsOn": ["^graphql:gen:prod"],
"graphql:gen": {
"dependsOn": ["^graphql:gen"],
"inputs": [".env*"]
}
}
Expand Down

0 comments on commit 8091edf

Please sign in to comment.