A simple full ES2015+
.
Concept behind: this starter is an easy to understand and ready to use ReactJS (ES6) + bootstrap + webpack starter with:
no hard core Webpack
config so it is more commonly understandable (they are numerous amazing starters with incredible webpack configs — hard core configs aren't bad things at all! —. This one is just for easier understanding for people even discovering webpack)with hot reload
(ReactJS + webpack => hot reload = WINNER)no flux
(yes, to give you freedom to add then since you may want to use something else like observables?)no auth
(simple starter that even fits for simple applications that don't need auth)- ReactJS Components written with
optimization tricks
(stateless, pure render...).
ReactJS
v15.4.x
requires react-hot-loader
to be v3+
(previous react-hot-loader was v1.x).
So This starter had to include breaking changes to follow all of that.
Front:
- React JS (15.4.x - github 🔗)
- react-router (3.x- github 🔗)
- Bootstrap (3.x - github 🔗)
- React-Bootstrap (github 🔗)
- font-awesome (github 🔗)
- animate.css (github 🔗)
- classnames (github 🔗)
- react-motion (github 🔗)
- Webpack (github 🔗)
- babel 6+ (github 🔗)
- react-addons-shallow-compare (pure render mixin equivalent for ES6)
- whatwg-fetch (Why: because it is a fetch
Web API
polyfill)
Tool chain:
- babel 6+
- eslint
- hot reload
- loaders
js
/jsx
- sass
- css
- json
- images formats
- svg and fonts formats
- autoprefixer (css and sass)
tests:
- Mocha
- Chai (+ dirty-chai)
- enzyme
- Sinon
- nyc
npm install
General case:
npm run dev
Windows - particular - case:
npm run dev-win
General case:
npm run start
Windows - particular - case:
npm run start-win
General case:
npm run test
Windows - particular - case:
npm run test-win
General case:
npm run prod
Windows - particular - case:
npm run prod-win
- tests
- 100%
- coverage
- hot reload
-
Redux(won't be added "HERE" since specific reporeact-redux-bootstrap-webpack-starter
created here)
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.