Wails Svelte + TypeScript + less + Prettier + ESLint + Vite Template.
The template is based on the official Wails svelte-ts template, upgraded to Svelte 5, manually installed less, Prettier and ESLint. The configuration files are from official SvelteKit template created using npx sv create.
To run in live development mode, run wails dev in the project directory. In another terminal, go into the frontend directory and run npm run dev. The frontend dev server will run on http://localhost:34115. Connect to this in yourbrowser and connect to your application.
To check the code, run npm run check in the frontend directory. Or run npm run check:watch to watch for changes.
To lint the code, run npm run lint in the frontend directory.
To format the code, run npm run format in the frontend directory.
To build a redistributable, production mode package, use wails build.
Note: Wails runs frontend commands in the frontend directory by default. Set the commands in wails.json as plain npm commands (no --prefix) so they run correctly in development and build modes, for example:
"frontend:install": "npm install""frontend:build": "npm run build"If you previously used --prefix frontend in wails.json, Wails may run the command inside frontend and the --prefix can cause npm to look for frontend/frontend/package.json (and fail). If you see that error, remove the --prefix entries and run:
rm -rf node_modules
wails build
Then verify the frontend dependencies are installed in the right place:
ls frontend/node_modules
If you prefer to run commands manually, you can still cd frontend && npm install or cd frontend && npm run build.
.agent/ directory. These are concise, actionable guidance files intended for automated agents and humans working with agents..agent/rules/ for rule files (e.g., wails_bindings.md) and .agent/workflows/ for workflow guidance (e.g., safe_commands.md)..github/copilot-instructions.md. If you add or change rules in .agent/, please update the copilot-instructions summary so agents and humans can find them quickly.