GithubHelp home page GithubHelp logo

electron-vite-sveltekit-template's Introduction

electron-vite-sveltekit-template

A minimal Electron application with TypeScript + SvelteKit + Bytenode

How it works?

Template utilizes electron-vite for its ability to bundle & compile node.js (main & renderer files) to V8 Bytecode. Template doesn't use renderer part of electron-vite, but rather embeds SvelteKit into the project as sub-project in src/renderer directory with it's own dependencies. SvelteKit is configured with adapter-static to build SPA (Single Page Application) with static HTML/CSS/JS. Esentially it gives the best of both worlds:

Recommended IDE Setup

Project Setup

Install

$ npm install # installs dependencies of `electron-vite`
$ cd src/renderer && npm install # installs dependencies of SvelteKit
$ cd ../../ # gets back to the source directory

Development

Quick start:

$ npm run dev # command starts 2 subcommands in parallel using `concurrently` npm package

If you need new dependencies for SvelteKit:

$ cd src/renderer # navigate to SvelteKit directory & do things from there

(!!!) Don't forget to go back to source directory with cd ../../ after you installed necessary dependencies.

Build

# For windows
$ npm run build:win

# For macOS
$ npm run build:mac

# For Linux
$ npm run build:linux

electron-vite-sveltekit-template's People

Contributors

dj-nuo avatar

Stargazers

 avatar Ender avatar Lukas avatar Tim Sekiguchi avatar  avatar Zak avatar  avatar João Luiz Teixeira avatar Brad Pillow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.