Compare commits
10 Commits
c215369973
...
c89436bfb3
Author | SHA1 | Date | |
---|---|---|---|
|
c89436bfb3 | ||
|
7a9da2e133 | ||
|
60d40b196c | ||
|
297545d347 | ||
|
5faa65cd23 | ||
|
ebaadf5b8f | ||
|
be9b1d5b53 | ||
|
b3f7833087 | ||
|
db3986e6fe | ||
|
509c825bc9 |
24
.github/workflows/ci.yaml
vendored
Normal file
24
.github/workflows/ci.yaml
vendored
Normal 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
|
@ -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,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
@ -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
16549
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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
8123
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user