Compare commits

..

No commits in common. "c89436bfb3ad36dc6a56efd5de55275f127bfd1a" and "c2153699739d1bc2f5a83afd3b11fab3c51e3718" have entirely different histories.

6 changed files with 952 additions and 23773 deletions

View File

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

View File

@ -1,7 +1,5 @@
# 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/)
### Getting started locally

16553
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff