Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route typegen changes - Sveltekit Page/LayoutData mixin + Layout houdini_load Inheritance #673

Merged
merged 35 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e27535c
Working on new type generation, commit before merge to 0.17.0
sjcobb2022 Oct 21, 2022
b0d583c
Merge branch 'main' of https://github.com/sjcobb2022/houdini
sjcobb2022 Oct 21, 2022
4452851
Merge pull request #1 from HoudiniGraphql/main
sjcobb2022 Oct 25, 2022
c12a742
prepare for merge
sjcobb2022 Oct 25, 2022
209bbaf
Merge branch 'main' of https://github.com/sjcobb2022/houdini
sjcobb2022 Oct 25, 2022
b9bfc1a
notes for future
sjcobb2022 Oct 25, 2022
5d2a9dc
Merge branch 'HoudiniGraphql:main' into main
sjcobb2022 Oct 31, 2022
17b7d51
Regex the hell out of this
sjcobb2022 Oct 31, 2022
190264f
{Type}Data is functional
sjcobb2022 Nov 1, 2022
b761b59
Working :tada:
sjcobb2022 Nov 1, 2022
eaa9359
Merge branch 'HoudiniGraphql:main' into main
sjcobb2022 Nov 1, 2022
aa3a80f
relative imports for load types
sjcobb2022 Nov 1, 2022
2e6147b
Merge branch 'main' of https://github.com/sjcobb2022/houdini
sjcobb2022 Nov 1, 2022
0217e5c
added changeset
sjcobb2022 Nov 1, 2022
b208319
Tests working :tada: & LoadInput proper generation
sjcobb2022 Nov 2, 2022
38beb75
Tests working :tada: & LoadInput proper generation
sjcobb2022 Nov 2, 2022
ad48579
FIX: diffs not merged
sjcobb2022 Nov 2, 2022
737d560
FIX: Format and unnecessary log in tests
sjcobb2022 Nov 2, 2022
01b4941
tiny formatting issue that will annpy me if I don't fix it
sjcobb2022 Nov 2, 2022
66fdcab
Additional fs exports were not necessary, oops
sjcobb2022 Nov 3, 2022
3c8ec92
added comments
sjcobb2022 Nov 3, 2022
b1f276d
Reorder of type generation
sjcobb2022 Nov 3, 2022
6803cfa
FIX: Run prettier
sjcobb2022 Nov 3, 2022
742d066
Fix lint
sjcobb2022 Nov 3, 2022
1fe84b4
Using walk_routes
sjcobb2022 Nov 5, 2022
72c3971
Formatting, Lint and remove commented old code
sjcobb2022 Nov 5, 2022
14fd2ac
Merge branch 'HoudiniGraphql:main' into walk_routes
sjcobb2022 Nov 5, 2022
a9b9dbf
Merge pull request #2 from sjcobb2022/walk_routes
sjcobb2022 Nov 5, 2022
9e44482
updated lock
sjcobb2022 Nov 6, 2022
cd2a5cd
Merge pull request #4 from sjcobb2022/HoudiniGraphql-main
sjcobb2022 Nov 6, 2022
c11116a
Fixed proxy files, use houdini types in e2e, added copyFileSync to fs
sjcobb2022 Nov 8, 2022
156644d
FIX: Format
sjcobb2022 Nov 8, 2022
5f3b2f6
FIX: return from copyFileSync
sjcobb2022 Nov 9, 2022
cae3e41
FIX: add fs.copyFile, fixed async calls, use internal path
sjcobb2022 Nov 10, 2022
d260851
tidy up changeset
AlecAivazis Nov 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/shy-months-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'houdini': patch
'houdini-svelte': patch
---

Added typescript codegen
4 changes: 3 additions & 1 deletion e2e/sveltekit/src/routes/plugin/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// don't delete this. It's here as a way to verify some behavior on the session test
export async function load() {
return {};
return {
test: 'test'
};
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { PageData } from './$types';
import type { PageData } from './$houdini';
export let data: PageData;

$: ({ Partial_List } = data);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { PageData } from './$types';
import type { PageData } from './$houdini';

export let data: PageData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { PageData } from './$types';
import type { PageData } from './$houdini';

export let data: PageData;

Expand Down
2 changes: 1 addition & 1 deletion e2e/sveltekit/src/routes/stores/ssr-[userId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { CachePolicy } from '$houdini';
import { page } from '$app/stores';
import { stry } from '@kitql/helper';
import type { PageData } from './$types';
import type { PageData } from './$houdini';

export let data: PageData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { MultiUserStore } from '$houdini';
import type { PageData } from './$types';
import type { PageData } from './$houdini';

export let data: PageData;

Expand Down
2 changes: 1 addition & 1 deletion e2e/sveltekit/src/routes/stores/ssr/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { PageData } from './$types';
import type { PageData } from './$houdini';

export let data: PageData;
$: ({ usersList, Hello } = data);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"@changesets/changelog-github": "^0.4.7",
"@changesets/cli": "^2.25.0",
"@playwright/test": "1.25.0",
"playwright-core": "1.25.0",
"@theguild/eslint-config": "^0.1.0",
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
"eslint-plugin-unused-imports": "^2.0.0",
"graphql": "^15.8.0",
"playwright-core": "1.25.0",
"prettier": "^2.7.0",
"turbo": "^1.5.4",
"vite": "^3.1.6",
Expand Down
Loading