From c94c4dd9d49136a2c4d592bbf490bb3fbdb3d555 Mon Sep 17 00:00:00 2001 From: Perny <83672513+pernydev@users.noreply.github.com> Date: Sun, 24 Nov 2024 18:39:32 +0200 Subject: [PATCH 1/3] chore: update svelte CLI command --- website/docs/guides/sveltekit.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/guides/sveltekit.mdx b/website/docs/guides/sveltekit.mdx index 333138f78d3..a63ee253024 100644 --- a/website/docs/guides/sveltekit.mdx +++ b/website/docs/guides/sveltekit.mdx @@ -1,4 +1,4 @@ -# SvelteKit +m # SvelteKit This guide will go into: 1. Minimal Installation Steps - The steps needed to get a minimum Wails setup working for SvelteKit. @@ -14,8 +14,8 @@ This guide will go into: - Navigate into your newly created myapp folder. - Delete the folder named "frontend" -##### While in the Wails project root. Use your favorite package manager and install SvelteKit as the new frontend. Follow the prompts. -- `npm create svelte@latest frontend` +##### While in the Wails project root. Use the Svelte CLI to create a SvelteKit project as the new frontend. Follow the prompts, nothing Wails specific is needed here. +- `npx sv create` ##### Modify wails.json. - Add `"wailsjsdir": "./frontend/src/lib",` Do note that this is where your Go and runtime functions will appear. From c002c02e5d48d2bea44bc4bafe5c48ae3a0997de Mon Sep 17 00:00:00 2001 From: Perny <83672513+pernydev@users.noreply.github.com> Date: Sun, 24 Nov 2024 18:42:29 +0200 Subject: [PATCH 2/3] chore: specify folder location for svelte project creation command --- website/docs/guides/sveltekit.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/sveltekit.mdx b/website/docs/guides/sveltekit.mdx index a63ee253024..670d85e2a3a 100644 --- a/website/docs/guides/sveltekit.mdx +++ b/website/docs/guides/sveltekit.mdx @@ -15,7 +15,7 @@ This guide will go into: - Delete the folder named "frontend" ##### While in the Wails project root. Use the Svelte CLI to create a SvelteKit project as the new frontend. Follow the prompts, nothing Wails specific is needed here. -- `npx sv create` +- `npx sv create frontend` ##### Modify wails.json. - Add `"wailsjsdir": "./frontend/src/lib",` Do note that this is where your Go and runtime functions will appear. From 9f7a2b53728779612e95fb194ce1566a98ca301b Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 25 Nov 2024 19:13:16 +1100 Subject: [PATCH 3/3] Update website/docs/guides/sveltekit.mdx --- website/docs/guides/sveltekit.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/sveltekit.mdx b/website/docs/guides/sveltekit.mdx index 670d85e2a3a..afb67f63087 100644 --- a/website/docs/guides/sveltekit.mdx +++ b/website/docs/guides/sveltekit.mdx @@ -1,4 +1,4 @@ -m # SvelteKit +# SvelteKit This guide will go into: 1. Minimal Installation Steps - The steps needed to get a minimum Wails setup working for SvelteKit.