Skip to content

Commit

Permalink
chore: Add graphql gen to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Sep 18, 2024
1 parent 67da411 commit 54d7ba8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ runs:
uses: pnpm/action-setup@v4
with:
version: 9
node-version: 20
node-version: 18

- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
node-version: 18

- name: Install dependencies
shell: bash
run: pnpm i --frozen-lockfile

- name: Generate api typings
shell: bash
run: pnpm gen:graphql:prod
run: pnpm graphql:gen:prod
10 changes: 5 additions & 5 deletions apps/frontend-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"license": "MIT",
"private": true,
"scripts": {
"dev": "concurrently \"pnpm gen:graphql:dev --watch\" \"next dev\"",
"dev": "concurrently \"pnpm graphql:gen:dev --watch\" \"next dev\"",
"dev-bal": "PROTOCOL=bal pnpm dev",
"build": "PROTOCOL=bal pnpm gen:graphql:prod && next build",
"build:dev": "PROTOCOL=bal pnpm gen:graphql:dev && next build",
"build": "PROTOCOL=bal pnpm graphql:gen:prod && next build",
"build:dev": "PROTOCOL=bal pnpm graphql:gen:dev && next build",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
"typecheck": "tsc --noEmit",
"prepare": "husky",
"gen:graphql:dev": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config",
"gen:graphql:prod": "DOTENV_CONFIG_PATH=./.env graphql-codegen -r dotenv/config",
"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",
"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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"prettier": "prettier --check '**/*.*(md|json|yaml|ts|js|tsx)' --loglevel warn",
"prettier:fix": "pnpm run prettier --write",
"stylelint": "stylelint '**/*.css'",
"stylelint:fix": "pnpm run stylelint -- --fix"
"stylelint:fix": "pnpm run stylelint -- --fix",
"graphql:gen:prod": "turbo graphql:gen:prod"
},
"devDependencies": {
"prettier": "^3.2.5",
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
},
"test:integration": {
"dependsOn": ["^test:integration"]
},
"graphql:gen:prod": {
"dependsOn": ["^graphql:gen:prod"],
"inputs": [".env*"]
}
}
}

0 comments on commit 54d7ba8

Please sign in to comment.