This repo provides a simple template for building a cross-platform app
using tauri, typescript and
svelte. Stores are provided using
immer (see stores/testStore.ts
).
The repo is not configured to use typescript in .svelte
files. The
suggested approach here is to define the majority of logic in imported
.ts
files. In particular, type-safe logic can be developed in stores
built using the buildImmerActionStore
found in immerActionStore.ts
.
- Create a repo from the template repo.
- Follow the steps to get started on the tauri docs.
In particular, node, Rust and
tauri-builder
must be installed. - in the repo directory run
yarn
to install dependencies. - Run
yarn dev
to build the app with hot reloading. - Run
yarn dev:client
to work on the client app in the browser - Run
yarn build
to bundle the app.
Refer to the tauri docs for more information on configuring the application.
The tailwind
branch tracks the master branch but with tailwind CSS
integrated. Start from this branch of the template if you want Tailwind
CSS integration.
MIT, contributions welcome.