/react-redux-immutable-webpack-starter

React + Redux + Immutable + React Router 4 + Bootstrap + Webpack 2 -starter

Primary LanguageJavaScript

React + React-Router + Redux + ImmutableJS + Bootstrap with Hot Reload and redux-devtools STARTER

license Travis branch Coverage Status

My React + Redux + Immutable + React-Router + Bootstrap + webpack project starter.

  • webpack is as simple as possible
  • ReactJS + Redux + React Router all immutable (all components extend PureComponent).
  • pure front-end = server independant (use whatever you want as server: NodeJS, Rails, .NET...)

Preview of this starter

Detailed Content

Front:

Tool chain:

  • babel 6+
  • eslint
  • webpack 2.x
  • hot reload
  • loaders
    • js / jsx
    • sass
    • css
    • json
    • images formats
    • svg and fonts formats
  • postcss

tests:

  • Mocha
  • Chai (+ dirty-chai)
  • enzyme
  • Sinon
  • nyc

Usage

Install

npm install

bundle dev mode (+ redux-devtools)

General case:

npm run dev

dev : hot reload mode (+ redux-devtools)

General case:

npm run start

tests

General case:

npm run test

bundle production mode

General case:

npm run prod

serve bundles (for dev or prod bundles)

With server hot reload (nodemon): General case:

npm run serve-dev

Without server hot reload: General case:

npm run serve-prod

License

The MIT License (MIT)

Copyright (c) 2017 Erwan DATIN

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.