React/Redux functional boilerplate
An electron ready functional React/Redux webpack boilerplate
Introduction
This is my personal react-redux boilerplate.
Features
- ES6
- hybrid app (web/electron)
- hot module reload in electron
- with
electron-packager
- start electron dev-server in one command
- ramda ready (use
babel-plugin-ramda
) - unit testing ready with
jest
Dependencies
ramda
react
react-dom
redux
react-redux
redux-actions
keymirror
reselect
Usage
Normal use
in development
npm run build:dev
: build bundle in development modenpm run dev
: start dev-server
in production
npm run build
: build bundle in production modenpm run dev:prod
: start dev-server in production mode
Use with electron
in development
npm run build:dev:main
: build electron main app in development modenpm run dev:electron
: start electron dev-server
in production
npm run build:main
: build electron main app in production modenpm run package:electron:osx
: package electron application in a.app
file
Test
npm run test
: start testsnpm run test:coverage
: start tests with coveragenpm run test:watch
: start tests (with watch)
Misc
npm run clean
: remove dist/ and clean/ buildernpm run open
: open browser
What next ?
- Installable : boilerplate will be installable in one command
- More configurable : more configurations
- Auto updates
- package in
.exe