Skip to content

Commit 0377069

Browse files
committed
Further graphql integration prep
1 parent e8819e1 commit 0377069

71 files changed

Lines changed: 1077 additions & 537 deletions

File tree

Some content is hidden

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

docs/unity-client-architecture.md

Lines changed: 392 additions & 0 deletions

spellsource-client/src/unity

Submodule unity updated from bf0da1c to aa4708b

spellsource-graphql/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ new JsonSlurper().parseText(file('package.json').text).scripts.each { String scr
5454
}*/
5555

5656
tasks.named("yarnRunCodegen").configure {
57+
inputs.file("schema.graphql")
5758
inputs.dir("graphql/web")
5859
inputs.dir("graphql/shared")
5960
// TODO manually specify outputs as well?
@@ -66,6 +67,7 @@ tasks.register("toolRestore", Exec) {
6667

6768
tasks.named("yarnRunStrawberryShake").configure {
6869
dependsOn "toolRestore"
70+
inputs.file("schema.graphql")
6971
inputs.dir("graphql/client")
7072
inputs.dir("graphql/shared")
7173
inputs.file(".graphqlrc.json")
@@ -90,4 +92,17 @@ tasks.named("createDist").configure {
9092
outputs.dir("docker/spellsource/graphql")
9193

9294
group "spellsource"
95+
}
96+
97+
tasks.register("generateSchema") {
98+
group('spellsource')
99+
description("Generates the stitched GraphQL schema by starting the full server stack.")
100+
dependsOn ":spellsource-server:generateSchema"
101+
}
102+
103+
tasks.register("regenerate") {
104+
group('spellsource')
105+
description("Full cycle: generate stitched schema then run all codegen.")
106+
dependsOn generateSchema, generateAll
107+
generateAll.mustRunAfter(generateSchema)
93108
}

spellsource-graphql/graphql/client/mutations/makeRogueChoice.graphql

Lines changed: 0 additions & 5 deletions
This file was deleted.

spellsource-graphql/graphql/client/mutations/startRogueRun.graphql

Lines changed: 0 additions & 5 deletions
This file was deleted.

spellsource-graphql/graphql/web/fragments/cardRecord.graphql renamed to spellsource-graphql/graphql/shared/fragments/cardRecord.graphql

File renamed without changes.

spellsource-graphql/graphql/web/fragments/entity.graphql renamed to spellsource-graphql/graphql/shared/fragments/entity.graphql

File renamed without changes.

spellsource-graphql/graphql/web/fragments/entitySummary.graphql renamed to spellsource-graphql/graphql/shared/fragments/entitySummary.graphql

File renamed without changes.

spellsource-graphql/graphql/web/fragments/gameState.graphql renamed to spellsource-graphql/graphql/shared/fragments/gameState.graphql

File renamed without changes.

spellsource-graphql/graphql/web/fragments/generatedArt.graphql renamed to spellsource-graphql/graphql/shared/fragments/generatedArt.graphql

File renamed without changes.

0 commit comments

Comments
 (0)