Giter Site home page Giter Site logo

shamscorner / electron-vite-ts-stackter Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 1.0 5.84 MB

๐Ÿฅณ An Electron + Vue 3 starter project setup with Vite, Typescript, Vue-Router, Pinia, Eslint, Prettier, Tailwind CSS, and some custom preferences.

License: MIT License

JavaScript 5.81% TypeScript 61.35% HTML 2.80% Vue 28.93% CSS 1.10%
electron electron-vite electron-vue vite vue vue3 vue3-typescript

electron-vite-ts-stackter's Introduction

Electron-Vite-TS-Stackter

An Electron + Vue 3 starter project setup with Vite, Typescript, Vue-Router, Pinia, Eslint, Prettier, Tailwind CSS, and some custom preferences.

This repository is an extended version of the simple one.

electron-vite-vue.gif

Features

๐Ÿ“ฆ Out of the box

๐ŸŽฏ Based on the official template-vue-ts, less invasive

๐ŸŒฑ Extensible, really simple directory structure

๐Ÿ’ช Support using Node.js API in Electron-Renderer

๐Ÿ”ฉ Support C/C++ native addons

๐Ÿ–ฅ It's easy to implement multiple windows

๐Ÿš€ configured with Eslint & Prettier

๐Ÿš€ Vue router support

๐Ÿš€ Pinia state management

๐Ÿš€ TailwindCSS (Dark mode support)

๐Ÿš€ VueUse

๐Ÿš€ Easy dependency update with taze

๐Ÿš€ I18n support - multiple locales

Get Started

1. Install packages

npm i
or,
pnpm i --shamefully-hoist

2. Run

In development mode,

npm run app:dev
or,
pnpm run app:dev

In preview mode,

npm run app:preview
or,
pnpm run app:preview

To build for production,

npm run app:build
or,
pnpm run app:build

Debug

electron-vite-react-debug.gif

Directory

+ โ”œโ”€โ”ฌ electron
+ โ”‚ โ”œโ”€โ”ฌ main
+ โ”‚ โ”‚ โ””โ”€โ”€ index.ts    entry of Electron-Main
+ โ”‚ โ””โ”€โ”ฌ preload
+ โ”‚   โ””โ”€โ”€ index.ts    entry of Preload-Scripts
  โ”œโ”€โ”ฌ src
  โ”‚ โ””โ”€โ”€ main.ts       entry of Electron-Renderer
  โ”œโ”€โ”€ index.html
  โ”œโ”€โ”€ package.json
  โ””โ”€โ”€ vite.config.ts

Be aware

๐Ÿšจ By default, this template integrates Node.js in the Renderer process. If you don't need it, you just remove the option below. Because it will modify the default config of Vite.

# vite.config.ts

export default {
  plugins: [
-   // Use Node.js API in the Renderer-process
-   renderer({
-     nodeIntegration: true,
-   }),
  ],
}

FAQ

electron-vite-ts-stackter's People

Contributors

shamscorner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

codedefective

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.