Compare commits

...

10 Commits

Author SHA1 Message Date
Samuel Andert
c89436bfb3 test push 2023-09-22 09:38:44 +02:00
StarpTech
7a9da2e133 chore: improve 2023-06-19 09:35:40 +02:00
StarpTech
60d40b196c chore: upgrade sdk 2023-06-04 15:41:39 +02:00
StarpTech
297545d347 chore: upgrade sdk 2023-06-02 20:37:04 +02:00
StarpTech
5faa65cd23 chore: upgrade sdk 2023-05-22 10:57:38 +02:00
ggeijteman-wg
ebaadf5b8f
Upgrade wundergraph/sdk to 0.155.0 - lockfile 2023-05-11 16:15:07 +02:00
ggeijteman-wg
be9b1d5b53
Upgrade wundergraph/sdk to 0.155.0 2023-05-11 16:12:56 +02:00
StarpTech
b3f7833087 chore: add badge 2023-04-18 12:46:30 +02:00
StarpTech
db3986e6fe chore: switch to npm 2023-04-18 12:44:34 +02:00
StarpTech
509c825bc9 chore: upgrade sdk 2023-04-17 12:34:29 +02:00
6 changed files with 23770 additions and 949 deletions

24
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,24 @@
name: CI
on:
push:
branches:
- main
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm ci
- run: npm test

View File

@ -3,7 +3,6 @@ import {
cors, cors,
EnvironmentVariable, EnvironmentVariable,
introspect, introspect,
templates,
} from "@wundergraph/sdk"; } from "@wundergraph/sdk";
import server from "./wundergraph.server"; import server from "./wundergraph.server";
import operations from "./wundergraph.operations"; import operations from "./wundergraph.operations";
@ -18,13 +17,6 @@ configureWunderGraphApplication({
apis: [spacex], apis: [spacex],
server, server,
operations, operations,
codeGenerators: [
{
templates: [
...templates.typescript.all,
],
},
],
cors: { cors: {
...cors.allowAll, ...cors.allowAll,
allowedOrigins: allowedOrigins:
@ -37,8 +29,5 @@ configureWunderGraphApplication({
"http://localhost:3000", "http://localhost:3000",
new EnvironmentVariable("WG_ALLOWED_ORIGIN"), new EnvironmentVariable("WG_ALLOWED_ORIGIN"),
], ],
}, }
dotGraphQLConfig: {
hasDotWunderGraphDirectory: false,
},
}); });

View File

@ -1,5 +1,7 @@
# WunderGraph Cloud Starter # WunderGraph Cloud Starter
[![CI](https://github.com/wundergraph/cloud-starter/actions/workflows/ci.yaml/badge.svg)](https://github.com/wundergraph/cloud-starter/actions/workflows/ci.yaml)
A simple starter that consumes the [GraphQL SpaceX API](https://spacex-api.fly.dev/graphql/) A simple starter that consumes the [GraphQL SpaceX API](https://spacex-api.fly.dev/graphql/)
### Getting started locally ### Getting started locally

16549
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,15 +3,15 @@
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"scripts": { "scripts": {
"start": "wunderctl up --debug", "start": "wunderctl up",
"build": "wunderctl generate --debug", "build": "wunderctl generate",
"check": "tsc --noEmit", "check": "tsc --noEmit",
"test": "jest" "test": "npm run build && jest"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@wundergraph/sdk": "0.139.0" "@wundergraph/sdk": "^0.163.3"
}, },
"devDependencies": { "devDependencies": {
"@jest/globals": "^29.4.3", "@jest/globals": "^29.4.3",

8123
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff