mirror of
https://github.com/tauri-apps/vue-cli-plugin-tauri.git
synced 2026-02-04 02:31:17 +01:00
a55e86a08d1d8b36a11ecf0370875d79cbdb59fd
vue-cli-plugin-tauri
A Vue CLI plugin for rigging Tauri
Turn your Vue SPA into a tiny cross platform desktop app that is fast and secure.
Installation
Please read the general Tauri wiki if you run into any problems: https://github.com/tauri-apps/tauri/wiki
Prerequisites:
- NodeJS/npm
- Vue CLI (
yarn global add @vue/cli/npm i -g @vue/cli) - Rust/Cargo
- Tauri CLI (
cargo install tauri-bundler) - Yarn (optional but recommended over npm)
OS Specifics
- Linux: https://github.com/tauri-apps/tauri/wiki/02.-Linux-Setup
- Mac: https://github.com/tauri-apps/tauri/wiki/03.-MacOS-Setup
- Windows: https://github.com/tauri-apps/tauri/wiki/04.-MS-Windows-Setup
Steps:
- Create a Vue CLI project (or cd into an existing one)
vue create my-tauri-app
cd my-tauri-app
- Install Vue CLI Plugin Tauri
vue add tauri
- Run commands
With Yarn:
# Start dev server with HMR
yarn tauri:serve
# Build executable (dist in src-tauri/target/release)
yarn tauri:build
With npm:
# Start dev server with HMR
npm run tauri:serve
# Build executable (dist in src-tauri/target/release)
npm run tauri:build
Languages
JavaScript
100%