Electron Svelte boilerplate
The Sveltron boilerplate is a template for building Svelte applications using ElectronJS. It also includes SASS as a preprocessor for styling. This boilerplate allows you to quickly set up and start a new project with Svelte and ElectronJS.
To create a new project based on the Sveltron boilerplate, follow these steps:
npm install in your project directory.npm run dev or npm start.Your app should now be up and running! To make changes to the app, simply edit a component file in the src directory and the main.js file. Save your changes and reload the app (CTRL+R) to see the updates.
If you prefer using SASS instead of SCSS, you can change the style type in your src/App.svelte file. Modify the style tag to <style type="text/sass"> to use SASS or remove the type tag entirely to use vanilla CSS.
Note that depending on your development environment, you might need to add “svelte.language-server.runtime”: “file:///path/to/your/node.exe” to your VS Code preferences.
To compile the app, you will need to use your preferred build process as this boilerplate is optimized for quick prototyping using Svelte.
The Sveltron boilerplate is a template for building Svelte applications with ElectronJS and SASS. It provides an easy way to set up a new project and get started with development. The integration of Svelte and ElectronJS allows for building powerful desktop applications using familiar web development technologies. With the added benefit of SASS as a preprocessor, it enables easy and efficient styling of the Svelte components. Overall, the Sveltron boilerplate is a handy tool for developers looking to create Svelte apps with ElectronJS and SASS.