-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split into houdini and houdini-svelte (#593)
* initial layout * move runtime * there are only packages * start turbo * start on houdini plugins * add fsPatch to houdini-svelte * plugins can modify index files * move houdini into src * redlines * more redlines * more redlines * start unifying build tasks * runtimes aren't bundled * unify structure more * build non-standard directories as submodules * both packages build (with type errors) * fix imports * comment out watch-and-run * start converting to rollup * go back to esbuild * import svelte plugin directly * remove cyclic dependency * move recursive copy * start generating typedefs * fix typescript lib config * move kit filepath conventions to houdini-svelte * more kit consolidation * houdini core typechecks 🎉 * remove flatten fs export * more fs imports * clean up deps * non transform page script related type issues * houdini-svelte typechecks * only emit typedefs * fix more circular imports * plugins can be imported * plugins need to be built to be imported * move codegen out of cmd * add config to vite adapter * add typedefs to generated runtime * runtime generation to svelte plugin * start on filepath conventions * fix ciruclar impots * more ciruclar deps cleared up * fixed issue in svelte transform * start on tests * add houdini/test * fixed some test type errors * update package.json * fix type error from merge * make fs_patch mix more clear * consolidate extraction logic * centralize plugin option config * svelte runtime can import core * new line when generating typescript index file * better newline behavior * fix parsing erors * svelte plugin generates stores in plugin_root * snapshot * fix relative paths and include fragments * it all builds 🎉 * remove plugin envar check since its static analysis now * update package.json * runtime typedefs * fix setSession exports * fix some more imports * remove extensions * fix timing issue with the fs patch * everything but preview layouts * fix preview errors * rename integration tests as end-to-end * example builds * update example * update pnpm lock file * rename houdini-svelte to houdini-plugin-svelte * fix imports in e2e tests * fix imports in tests * update vite setup imports * more test fixes * add root deps * fix includeFile call * update versions * add root deps * tests run * add pkg commands * build command now compiles and generates typedefs * use turbo publish pipeline when publishing changeset * remove artifact snapshot with normal inline extension * houdini-svelte tests need to run through full pipeline * and then there was one * there isn't a single version any more to welcome users to :( * fix siteURL references * fix imports * add lint * remove svelte-kit sync * move some dev deps to deps in sit * update pnpm lock * only compile for tests * build before e2e tests * build e2e * add type reference * triple slash -> import * fix adapter location * add reference back * local def for runtime * turn off @typescript-eslint/no-namespace * fix typedef for plugins * fix relative imports in generate typedefs * remove more lint rules * remove framework from config * plugin config embedded in config file * can't use framework config to identify v16 * use external watch and run * remove conflicting type * fix framework passed to unit tests * convert playwright config to js * refresh lock file * integration tests run locally * centralize config file logic in runtime * move svelte specific config to svelte plugin * update configs in exaple and e2e tests * remove unused file * fix quiet errors check * update tests * add 0.17.0 release notes * add houdini-svelte as a depencey in init * update setting-up guide * fix package descriptions * move changelog * use correct package.json version * revert pnpm-lock * fix component query docs * +layout.gql (#601) * 🚸 IMPROVE: integration tests with layout ideas * 🚧 UPDATE: types generated * 🚧 UPDATE: layout_query_path * 🚧 UPDATE: tmp while no Lyaout_User * ✅ DOC: update * ✨ NEW: +page & +layout * ✅ NEW: tests * ✏️ DOC: one line doc * ✏️ UPDATE: changeset * ✅ NEW: eae test * 🚸 IMPROVE: display the correct file that has an issue (including +page|+layout) * add changeset * move generate command to its own file * remove deprecated cli args * always export package.json * update release notes to use the new setSession * start trasnform_runtime api * consolidate runtime transforms * fix path of cjs runtime * update docs * more doc updates Co-authored-by: JYC <[email protected]>
- Loading branch information
1 parent
3015149
commit c1363fe
Showing
418 changed files
with
17,773 additions
and
23,608 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'houdini-svelte': patch | ||
--- | ||
|
||
Adding layout.gql special file |
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,6 @@ | ||
--- | ||
'houdini': minor | ||
'houdini-svelte': minor | ||
--- | ||
|
||
Split houdini into two packages: `houdini` and `houdini-svelte` |
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
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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
auto-install-peers=true | ||
strict-peer-dependencies=false | ||
|
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,3 +1,4 @@ | ||
**/build/** | ||
README.md | ||
.github/** | ||
.github/** | ||
packages/*/package.json |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
# Houdini End-to-End |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
integration/src/hooks.server.ts → e2e/sveltekit/src/hooks.server.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,12 @@ | ||
<script> | ||
import { goto } from '$app/navigation'; | ||
import { onMount } from 'svelte'; | ||
onMount(() => { | ||
goto('/'); | ||
}); | ||
</script> | ||
|
||
<!-- <h1>{$page.status}: {$page.error.message}</h1> --> | ||
|
||
User Not found... |
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 @@ | ||
import { redirect } from '@sveltejs/kit'; | ||
import type { PageServerLoad } from './$types'; | ||
|
||
export const load: PageServerLoad = async (event) => { | ||
if (event.url.pathname.endsWith('query-param')) { | ||
// fallback to user 2... because why not? | ||
throw redirect(307, event.url.pathname + '/user-2'); | ||
} | ||
return {}; | ||
}; |
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,32 @@ | ||
<!-- <span class="">One eternity later...</span> --> | ||
|
||
<span class="gradient element">One eternity later...</span> | ||
|
||
<style> | ||
.element { | ||
width: fit-content; | ||
padding-right: 40px; | ||
} | ||
.gradient { | ||
animation-duration: 0.8s; | ||
animation-fill-mode: forwards; | ||
animation-iteration-count: infinite; | ||
animation-name: placeHolderShimmer; | ||
animation-timing-function: linear; | ||
background: #f6f7f8; | ||
background: linear-gradient(to right, #fafafa 8%, #f4f4f4 38%, #ff3e00 80%); | ||
background-size: 1000px 640px; | ||
position: relative; | ||
} | ||
@keyframes placeHolderShimmer { | ||
0% { | ||
background-position: -468px 0; | ||
} | ||
100% { | ||
background-position: 468px 0; | ||
} | ||
} | ||
</style> |
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,25 @@ | ||
<script lang="ts"> | ||
import { fragment, graphql, type UserName } from '$houdini'; | ||
import Loading from './Loading.svelte'; | ||
// TODO: | ||
// And it can be undefined... because : <UserName user={$GQL_Page_User.data?.user} /> | ||
export let user: UserName | undefined; | ||
$: data = | ||
user && | ||
fragment( | ||
user, | ||
graphql` | ||
fragment UserName on User { | ||
name | ||
} | ||
` | ||
); | ||
</script> | ||
|
||
{#if $data} | ||
{$data.name} | ||
{:else} | ||
<Loading /> | ||
{/if} |
6 changes: 6 additions & 0 deletions
6
e2e/sveltekit/src/routes/query-param/user-[userId]/+layout.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,6 @@ | ||
query Layout_User($userId: ID!) { | ||
user(id: $userId, snapshot: "Page_User", delay: 750) { | ||
id | ||
...UserName | ||
} | ||
} |
Oops, something went wrong.
c1363fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs-next – ./
docs-next-houdinigraphql.vercel.app
docs-next-git-main-houdinigraphql.vercel.app
docs-next-kohl.vercel.app