This is a new Cerebral boilerplate with advanced Webpack2, ESLint, Karma tests, settings. The Webpack settings was inspired by "Using Webpack for Production JavaScript Applications".
Cerebral was designed to be very modular and composable solution for building very complex web apps in JavaScript. Technically Cerebral is an intelligent controller providing a scalable structure and management of the single, central UI state.
The boilerplate's code example uses stateless React components as UI layer. The state of the whole UI is controlled by the central single model tree and the Cerebral's modules.
This boilerplate requires Node 6.
git clone https://github.com/hipertracker/cerebral-boilerplate
cd cerebral-boilerplate
npm setup
npm start
The boilerplate uses Karma with Chai and Mocha.
npm run watch:test
The build creates 3 bundles, one with app source files, second with vendor files and third for common javascript code. It also uses Webpack 2 with tree-shaking to eliminate duplicated code. Every build is hash stamped to avoid cache issues.
npm run build
npm run build:prod