-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
106 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ node_modules | |
.output | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* | ||
/dist | ||
/dist | ||
$houdini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
projects: | ||
default: | ||
schema: | ||
- ./schema.graphql | ||
- ./$houdini/graphql/schema.graphql | ||
documents: | ||
- "**/*.gql" | ||
- "**/*.svelte" | ||
- ./$houdini/graphql/documents.gql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// <references types="houdini-svelte"> | ||
|
||
/** @type {import('houdini').ConfigFile} */ | ||
const config = { | ||
watchSchema: { | ||
url: "http://localhost:4000/graphql", | ||
}, | ||
plugins: { | ||
"houdini-svelte": {}, | ||
}, | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type Query { | ||
table(id: ID!): Table | ||
tables: [Table] | ||
} | ||
|
||
type Table { | ||
id: ID! | ||
name: String! | ||
recordsCount: Int! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { HoudiniClient } from "$houdini" | ||
|
||
export default new HoudiniClient({ | ||
url: "http://localhost:4000/graphql", | ||
|
||
// uncomment this to configure the network call (for things like authentication) | ||
// for more information, please visit here: https://www.houdinigraphql.com/guides/authentication | ||
// fetchParams({ session }) { | ||
// return { | ||
// headers: { | ||
// Authentication: `Bearer ${session.token}`, | ||
// } | ||
// } | ||
// } | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
query Tables { | ||
tables { | ||
id | ||
name | ||
recordsCount | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
import adapter from '@sveltejs/adapter-static'; | ||
|
||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; | ||
import adapter from "@sveltejs/adapter-static" | ||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" | ||
|
||
/** @type {import('@sveltejs/kit').Config} */ | ||
const config = { | ||
preprocess: [vitePreprocess({})], | ||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors | ||
// for more information about preprocessors | ||
preprocess: vitePreprocess(), | ||
|
||
kit: { | ||
adapter: adapter({ | ||
pages: 'dist', | ||
fallback: 'index.html' | ||
}) | ||
} | ||
}; | ||
kit: { | ||
adapter: adapter({ | ||
pages: "dist", | ||
fallback: "index.html", | ||
}), | ||
alias: { | ||
$houdini: "./$houdini", | ||
}, | ||
}, | ||
} | ||
|
||
export default config; | ||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"extends": "./.svelte-kit/tsconfig.json", | ||
"compilerOptions": { | ||
"allowImportingTsExtensions": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": false, | ||
"strict": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noEmit": true, | ||
"moduleResolution": "bundler", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true | ||
} | ||
"extends": "./.svelte-kit/tsconfig.json", | ||
"compilerOptions": { | ||
"allowImportingTsExtensions": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": false, | ||
"strict": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noEmit": true, | ||
"moduleResolution": "bundler", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"rootDirs": [".", "./.svelte-kit/types", "./$houdini/types", "./$houdini"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters