lightweight React.js boilerplate with JSPM and hot reloading modules
git clone [email protected]:capaj/jspm-react.git
npm i
npm start
npm start #starts webserver and watcher, the http port is 9080
npm build #build your bundle, use purely for production
npm test #runs mocha/chai/jsdom tests in node.js
Webpack's offering is good, but it is a big hack which lacks robustness. Even such basic thing as component event listeners is not working properly with webpack hot reloading. JSPMs module system is robust and safe. It will not suprise you-ES6 modules are very predictable when hot reloaded, much more than raw React components. Try it for yourself. Speed is certainly not the issue anymore.
Make your own style pipeline, this boilerplate doesn't offer one. Me personally, I am fine with inline styles inside my react components most of the time, but that is just me.
- githooks for commit trigerring tests and style check
- react-router
- standard.js for codestyle checking
- simple tests with Mocha, Chai and JSDOM