katallaxie / electron-react-preboot

:electric_plug: A teeny tiny boilerplate for TypeScript :sunglasses: + Electron + React.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

electron-react-preboot

A Highly Opinionated Boilerplate For Electron + React


Taylor Swift Volkswagen TypeScript Build Status Greenkeeper badge MIT license

Install

requires a node version >= 6 and an npm version >= 3.x.x

First, clone the repo via git:

git clone --depth=1 https://github.com/katallaxie/electron-react-preboot.git your-awesome-project

And then install dependencies with npm.

$ cd your-awesome-project
$ npm i

you will find readly compiled files in app

Run

Start the app in the dev environment. This starts the renderer process in hot-module-replacement mode and starts a server sends hot updates to the renderer process:

$ npm run start

that's it, you have your awesome Electron up an running

DevTools

Toggle Chrome DevTools

  • OS X: Cmd Alt I or F12
  • Linux: Ctrl Shift I or F12
  • Windows: Ctrl Shift I or F12

See electron-debug for more information.

DevTools extension

This boilerplate is included following DevTools extensions:

You can find the tabs on Chrome DevTools.

Packaging

To package apps for the local platform:

$ npm run publish

To package apps for all platforms:

First, refer to Multi Platform Build for dependencies.

License

MIT © Sebastian Döll

About

:electric_plug: A teeny tiny boilerplate for TypeScript :sunglasses: + Electron + React.

License:MIT License


Languages

Language:TypeScript 98.3%Language:HTML 1.2%Language:CSS 0.5%