React starter kit based on reBEM stack.
build/
– output folderconf/
– configstasks.js
– start taskssrc/index.js
– main entry pointsrc/components
– app layer componentssrc/theme-bootstrap
– bootstrap layer componentstest
— tests
npm i
npm start dev
open http://localhost:3000/webpack-dev-server/
npm start build
open build/index.html
There are four reBEM layers in this starter kit:
- reBEM core components
- reBEM reset theme
- Simple inline theme based on Bootstrap 3. It'll give you the basic understanding on how to create your own themes.
- App itself
Feel free to create and use your own.
Tests are preconfigured with karma, mocha and chai. Testing stack also includes some useful helpers:
- enzyme — great testing library for React
- rebem-enzyme — BEM addons for Enzyme
- chai-bem — Chai assertions for BEM class names
npm start tdd
npm start test