Skip to content

Commit f15b6eb

Browse files
authored
refactor: Integrate GraphQL Yoga and Pothos GraphQL (#387)
1 parent 3d88cb7 commit f15b6eb

File tree

237 files changed

+9882
-14542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+9882
-14542
lines changed

env/.local.env renamed to .env

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# Application settings for the "local" development environment.
2-
# Use the following CLI commands for reading/writing secrets:
3-
#
4-
# $ yarn envars set <name> <value> --env=local --secret
5-
# $ yarn envars get <name> --env=local
1+
# Environment variables for the "local" development environment.
2+
# https://vitejs.dev/guide/env-and-mode.html#env-files
63
#
74
# NOTE: You can override any of these settings by placing them
8-
# into ".local.override.env" file (excluded from the repo).
5+
# into `.env.local` file in the root of the project.
96

107
APP_NAME=example
8+
APP_ENV=local
119
APP_HOSTNAME=localhost
1210
APP_ORIGIN=http://localhost:5173
1311
API_ORIGIN=http://localhost:8080

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-FileCopyrightText: 2016-present Kriasoft */
1+
/* SPDX-FileCopyrightText: 2014-present Kriasoft */
22
/* SPDX-License-Identifier: MIT */
33

44
/**

.github/CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to GraphQL API Starter Kit
22

3-
[GraphQL API Starter Kit](https://github.com/kriasoft/relay-starter-kit) and
3+
[GraphQL API Starter Kit](https://github.com/kriasoft/graphql-starter-kit) and
44
want to get involved? Thanks! There are plenty of ways you can help!
55

66
Please take a moment to review this document in order to make the contribution
@@ -13,7 +13,7 @@ patches and features.
1313

1414
## Using the issue tracker
1515

16-
The [issue tracker](https://github.com/kriasoft/relay-starter-kit/issues) is
16+
The [issue tracker](https://github.com/kriasoft/graphql-starter-kit/issues) is
1717
the preferred channel for [bug reports](#bugs), [features requests](#features)
1818
and [submitting pull requests](#pull-requests), but please respect the following
1919
restrictions:
@@ -101,11 +101,11 @@ included in the project:
101101

102102
```bash
103103
# Clone your fork of the repo into the current directory
104-
git clone https://github.com/<your-username>/relay-starter-kit.git
104+
git clone https://github.com/<your-username>/graphql-starter-kit.git
105105
# Navigate to the newly cloned directory
106-
cd relay-starter-kit
106+
cd graphql-starter-kit
107107
# Assign the original repo to a remote called "upstream"
108-
git remote add upstream https://github.com/kriasoft/relay-starter-kit.git
108+
git remote add upstream https://github.com/kriasoft/graphql-starter-kit.git
109109
```
110110

111111
2. If you cloned a while ago, get the latest changes from upstream:
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# GitHub Actions workflow
2+
# https://help.github.com/actions
3+
# https://www.conventionalcommits.org
4+
5+
name: "Conventional Commits"
6+
7+
on:
8+
pull_request_target:
9+
types:
10+
- opened
11+
- edited
12+
- synchronize
13+
14+
permissions:
15+
pull-requests: read
16+
17+
jobs:
18+
lint:
19+
name: "Lint PR Title"
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: amannn/action-semantic-pull-request@v5
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
!.yarn/releases
1414
!.yarn/sdks
1515
!.yarn/versions
16+
17+
# Node.js
1618
node_modules
1719

1820
# Logs
@@ -28,6 +30,8 @@ yarn-error.log*
2830
*.lcov
2931

3032
# Environment variables
33+
.env.local
34+
.env.*.local
3135
.*.override.env
3236
/env/gcp-key.*.json
3337
!/env/gcp-key.test.json

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/app/queries/
44
/api/schema.graphql
55
/db/types.ts
6+
/db/models/*
67

78
# Cache
89
/.cache

.vscode/api.code-snippets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
" return db.table<${1/^(.)(.*?)s?$/${1:/upcase}$2/}>(\"${1/^(.*?)s?$/$1/}\").select();",
1818
" },",
1919
"};",
20-
""
20+
"",
2121
],
22-
"description": "Query List Field"
23-
}
22+
"description": "Query List Field",
23+
},
2424
}

.vscode/db.code-snippets

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scope": "javascript,typescript",
44
"prefix": "migration",
55
"body": [
6-
"import { Knex } from \"knex\";",
6+
"import type { Knex } from \"knex\";",
77
"",
88
"/**",
99
" * Migrates database schema to the next version.",
@@ -12,7 +12,6 @@
1212
"export async function up(db: Knex) {",
1313
" await db.schema.createTable(\"${1:table}\", (table) => {",
1414
" table$0",
15-
" table.boolean(\"archived\").notNullable().defaultTo(false);",
1615
" table.timestamps(false, true);",
1716
" });",
1817
"}",
@@ -22,8 +21,8 @@
2221
"}",
2322
"",
2423
"export const configuration = { transaction: true };",
25-
""
26-
]
24+
"",
25+
],
2726
},
2827
"Database seed": {
2928
"scope": "javascript,typescript",
@@ -42,7 +41,7 @@
4241
" await db.table(\"${1:table}\").delete();",
4342
" await db.table(\"${1:table}\").insert(${1:table});",
4443
"};",
45-
""
46-
]
47-
}
44+
"",
45+
],
46+
},
4847
}

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"editorconfig.editorconfig",
77
"esbenp.prettier-vscode",
88
"github.copilot",
9+
"github.vscode-github-actions",
910
"graphql.vscode-graphql",
1011
"hashicorp.terraform",
11-
"mgmcdermott.vscode-language-babel",
1212
"mikestead.dotenv",
1313
"streetsidesoftware.code-spell-checker",
1414
"vscode-icons-team.vscode-icons",
15-
"ZixuanChen.vitest-explorer"
15+
"zixuanchen.vitest-explorer"
1616
]
1717
}

.vscode/launch.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
"skipFiles": ["<node_internals>/**"],
2929
"type": "node"
3030
},
31-
{
32-
"name": "edge:start",
33-
"request": "launch",
34-
"runtimeExecutable": "yarn",
35-
"runtimeArgs": ["workspace", "edge", "run", "vite"],
36-
"skipFiles": ["<node_internals>/**"],
37-
"type": "node"
38-
},
3931
{
4032
"type": "node",
4133
"request": "attach",

.vscode/settings.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.organizeImports": true
3+
"source.organizeImports": "explicit"
44
},
55
"editor.defaultFormatter": "esbenp.prettier-vscode",
66
"editor.formatOnSave": true,
77
"editor.tabSize": 2,
88
"eslint.nodePath": ".yarn/sdks",
99
"eslint.runtime": "node",
10-
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
10+
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
1111
"typescript.tsdk": ".yarn/sdks/typescript/lib",
1212
"typescript.enablePromptUseWorkspaceTsdk": true,
1313
"vitest.commandLine": "yarn vitest",
@@ -35,12 +35,15 @@
3535
"**/yarn.lock": true
3636
},
3737
"terminal.integrated.env.linux": {
38+
"CLOUDSDK_ACTIVE_CONFIG_NAME": "default",
3839
"CACHE_DIR": "${workspaceFolder}/.cache"
3940
},
4041
"terminal.integrated.env.osx": {
42+
"CLOUDSDK_ACTIVE_CONFIG_NAME": "default",
4143
"CACHE_DIR": "${workspaceFolder}/.cache"
4244
},
4345
"terminal.integrated.env.windows": {
46+
"CLOUDSDK_ACTIVE_CONFIG_NAME": "default",
4447
"CACHE_DIR": "${workspaceFolder}\\.cache"
4548
},
4649
"cSpell.ignoreWords": [
@@ -73,6 +76,7 @@
7376
"hono",
7477
"identitytoolkit",
7578
"jsonb",
79+
"kanel",
7680
"knexfile",
7781
"kriasoft",
7882
"linkedin",
@@ -95,10 +99,13 @@
9599
"pgsslrootcert",
96100
"pguser",
97101
"pnpify",
98-
"reactstarter",
99102
"postgres",
103+
"pothos",
100104
"psql",
105+
"reactstarter",
106+
"recase",
101107
"refetchable",
108+
"relyingparty",
102109
"sendgrid",
103110
"signup",
104111
"sourcemap",
@@ -110,6 +117,8 @@
110117
"typechecking",
111118
"unprocessable",
112119
"upsert",
120+
"vite",
121+
"vitest",
113122
"webflow",
114123
"websql",
115124
"yarnpkg",

.vscode/web.code-snippets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"}",
2020
"",
2121
"export { ${TM_FILENAME_BASE}, type ${TM_FILENAME_BASE}Props };",
22-
""
22+
"",
2323
],
24-
"description": "React Component"
24+
"description": "React Component",
2525
},
2626
"Mutation": {
2727
"scope": "typescript",
@@ -88,8 +88,8 @@
8888
"}",
8989
"",
9090
"export { use${1}, type Input, type InputErrors };",
91-
""
91+
"",
9292
],
93-
"description": "Mutation React Hook"
94-
}
93+
"description": "Mutation React Hook",
94+
},
9595
}

0 commit comments

Comments
 (0)