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

View File

@ -1,7 +1,5 @@
# 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

16555
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", "start": "wunderctl up --debug",
"build": "wunderctl generate", "build": "wunderctl generate --debug",
"check": "tsc --noEmit", "check": "tsc --noEmit",
"test": "npm run build && jest" "test": "jest"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@wundergraph/sdk": "^0.163.3" "@wundergraph/sdk": "0.139.0"
}, },
"devDependencies": { "devDependencies": {
"@jest/globals": "^29.4.3", "@jest/globals": "^29.4.3",

File diff suppressed because it is too large Load Diff