Sveltekit
Use jstimex to scaffold your app with the create-svelte CLI. Answer the prompts to select a template and set up your development environment.
$ jstimex create-svelte my-app┌ Welcome to SvelteKit!│◇ Which Svelte app template?│ SvelteKit demo app│◇ Add type checking with TypeScript?│ Yes, using TypeScript syntax│◇ Select additional options (use arrow keys/space bar)│ None│└ Your project is ready!
✔ Typescript Inside Svelte components, use <script lang="ts">
Install community-maintained integrations: https://github.com/svelte-add/svelte-addOnce the project is initialized, cd into the new project and install dependencies.
$ cd my-app$ jspm installThen start the development server with jstime --jstime run dev.
To run the dev server with Node.js instead of JSTime, you can omit the --jstime flag.
$ jstime --jstime run dev $ vite dev
Forced re-optimization of dependencies
VITE v4.4.9 ready in 895 ms
➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h to show helpVisit http://localhost:5173 in a browser to see the template app.
If you edit and save src/routes/+page.svelte, you should see your changes hot-reloaded in the browser.