This is a project template for Svelte apps with NW.js. It lives at https://github.com/malipetek/svelte-nwjs-template.
To create a new project based on this template using degit:
npx degit malipetek/svelte-nwjs-template svelte-nwjs-app
cd svelte-nwjs-app
Note that you will need to have Node.js and NW.js installed.
You also need to have nw
in your systems path. Which means when you type nw ./
in your terminal when you are in your project folder, it should be running your project.
Install the dependencies...
cd svelte-nwjs-app
npm install
...then start Rollup and NWJS:
npm run dev
You should see your NWJS window opening and your app running inside it. Edit a component file in src
, save it, and reload the page to see your changes.