Skip to content

Commit

Permalink
Better create template (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis authored Sep 12, 2024
1 parent 6220d4d commit f68e424
Show file tree
Hide file tree
Showing 41 changed files with 35 additions and 465 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-masks-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-houdini': patch
---

improve template for projects with local schemas
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default createSchema({
`,
resolvers: {
Query: {
hello: () => 'world',
hello: () => 'Greetings from your local api 👋',
},
},
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
query HelloHoudini {
hello
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { PageProps } from './$types'

export default function ({ Hello }: PageProps) {
return (
<div className="flex flex-col gap-8">
<h2>Home</h2>

<p>{Hello.message}</p>
</div>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default createSchema({
`,
resolvers: {
Query: {
hello: () => 'world',
hello: () => 'Greetings from your local api 👋',
},
},
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
query HelloHoudini {
hello
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default function ({ Hello }) {
return (
<div className="flex flex-col gap-8">
<h2>Home</h2>

<p>{Hello.message}</p>
</div>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { PageProps } from './$types'

export default function ({}: PageProps) {
return (
<div>
<div className="flex flex-col gap-8">
<h2>Home</h2>

<p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function () {
return (
<div>
<div className="flex flex-col gap-8">
<h2>Home</h2>

<p>
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions packages/create-houdini/templates/sveltekit-demo/.eslintignore

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions packages/create-houdini/templates/sveltekit-demo/.meta.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/create-houdini/templates/sveltekit-demo/.meta.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/create-houdini/templates/sveltekit-demo/.npmrc

This file was deleted.

15 changes: 0 additions & 15 deletions packages/create-houdini/templates/sveltekit-demo/.prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions packages/create-houdini/templates/sveltekit-demo/.prettierrc

This file was deleted.

14 changes: 0 additions & 14 deletions packages/create-houdini/templates/sveltekit-demo/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions packages/create-houdini/templates/sveltekit-demo/houdini.config.js

This file was deleted.

38 changes: 0 additions & 38 deletions packages/create-houdini/templates/sveltekit-demo/package.json

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions packages/create-houdini/templates/sveltekit-demo/schema.graphql

This file was deleted.

12 changes: 0 additions & 12 deletions packages/create-houdini/templates/sveltekit-demo/src/app.d.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/create-houdini/templates/sveltekit-demo/src/app.html

This file was deleted.

16 changes: 0 additions & 16 deletions packages/create-houdini/templates/sveltekit-demo/src/client.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f68e424

Please sign in to comment.