This repository is to be used as a template (mostly for me) for using Tauri with sveltekit and my normal stack that I'm used to. Buuuuut I will include usage instructions anyway because there are actually a few setup steps.
- First as always, run
yarn
ornpm i
to install all dependencies in package.json. This will include@tauri-apps/cli
and@tauri-apps/api
which are necesarry. - Run
yarn tauri init
or whatever equivalent it is for npm. You can probably find it on their website here and I'm to lazy to look it up rn. - You have to make sure of a couple of things, again its all on their website and its all the same steps. The main things are to make sure when it asks for build location to change it from
../public
to../build
and when it asks about dev server to change the port from8080
to5173
(the default for SvelteKit, you'd have to change it in both files otherwise.), then lastly it asks about the dev server and build commands which arevite dev
andvite build
respectively.