Skip to content

Project Commands

Ludwig Richter edited this page Dec 15, 2020 · 4 revisions

Project Commands

npm:prestart

npm:start

Before the app can be started in development mode, it first must compile the Typescript sourcecode for the electron main process and the preload script into executable Javascript code. This is done via the npm:prestart script in the package.json.

After the compilation in prestart is done, there are two npm scripts started concurrently, the npm:start:main and the npm:start:renderer. If one of the processes stops, the other process with be stopped, too.

This two processes start the webpack development server from react-scripts and the electron app.

npm:start:main

npm:start:renderer

npm:build

npm:build:main

npm:build:preload

npm:build:renderer

npm:postinstall

npm:test

npm:style

npm:lint

npm:package

npm:package:linux

npm:package:win

npm:package:mac

Navigation

Using the badge

If you use this boilerplate, please consider using its badge in your README.md:

Built using electron react boilerplate

Using

[![Built using electron react boilerplate](https://img.shields.io/static/v1?label=Built%20using&message=electron-react-boilerplate&labelColor=2B2E3A&color=61DAFB)](https://github.com/fliegwerk/electron-react-boilerplate)

in your README.md file.

Clone this wiki locally