tauri-svite-app-template Svelte Themes

Tauri Svite App Template

A Svelte + (S)Vite + Tauri + TypeScript setup.

Tauri App Template: Svite (Svelte + Vite) && TypeScript in Tauri!

This is a simple skeleton app that provides an environment with:

  • svite: Svelte 3 + Vite
    • Svelte
    • Vite: Super fast native-ESM powered web dev build tool.
  • Configured for TypeScript + SCSS via node-sass
  • Prettier and ESLint, good to go
  • Tauri: A Rust-backed app framework that uses the system's webview API, making it much lighter than Electron

Getting Started

Dev Environment Dependencies

  • yarn (or npm if preferred, but this template provides a yarn.lock package lock file)
  • A working Rust dev environment: Easiest way to get started is with rustup
  • After installing Rust, you need to set up Tauri for your system
    • You do not need to yarn tauri init, the config files are already generated and in version control, but you can do so if you'd like to overwrite any of the Tauri configs

Once this is all set up, run yarn to install all required node packages.

Starting the app

You will need two terminals.

In the first terminal:

$ yarn dev

and in the second terminal:

yarn tauri dev

You should now have the dev server and dev app window up and ready to go!

Top categories

Loading Svelte Themes