Reactron Boilerplate
React boilerplate application built using electron
Prerequisites
- node >= 6.10 (check if installed and version
node -v
) - gulp >= 3.9 (check if installed and version
gulp -v
) - yarn >= 1.3.2
Installation
-
Clone the repository
-
Change to this reponsitory's directory
-
Install npm dependencies
$ yarn install
Environment variables
export NODE_ENV=development
Build Tasks
$ gulp browserify
- transpiles and concats all JavaScript files, then moves it todist
folder$ gulp html
- copies the html files todist
folder$ gulp stylus
- compiles the stylus files to css, then moves it todist
folder$ gulp images
- copies images todist
folder$ gulp build
- runsbrowserify
,html
,stylus
, andimages
tasks, then uglifies the JavaScript file.
Running the Application
$ npm start
- in most cases, this is what you only need. This command builds and runs the electron app.# Reactron-Boilerplate