marceloaugusto80 / electron-react-typescript-boilerplate

Boilerplate for Electron + React + Typescript + Fast-Refresh + Jest.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electron / React / Typescript boilerplate project

Slim template for desktop apps using:



Before anything

As always, install packages. Open a terminal in the project root folder and run:

$ npm install

During development

Start the app in development mode (with hot reload).

Run:

$ npm start

It will launch webpack dev server and electron concurrently. It has fast refresh (AKA hot-reload) enabled by default.


Start app in production mode (without hot reload).

Run:

$ npm run start:prod

Testing

Run:

$ npm test

This templated uses Jest (along with Ts-Jest) as testing framework.

Deploy

Just run:

$ npm run pack

and the output will available in the ./pack folder.

About

Boilerplate for Electron + React + Typescript + Fast-Refresh + Jest.

License:MIT License


Languages

Language:TypeScript 97.7%Language:HTML 2.3%