Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

rebem/starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reBEM Starter Kit

maintenance travis deps

React starter kit based on reBEM stack.

Structure

  • build/ – output folder
  • conf/ – configs
  • tasks.jsstart tasks
  • src/index.js – main entry point
  • src/components – app layer components
  • src/theme-bootstrap – bootstrap layer components
  • test — tests

Usage

install

npm i

dev

npm start dev
open http://localhost:3000/webpack-dev-server/

build

npm start build
open build/index.html

Layers

There are four reBEM layers in this starter kit:

  1. reBEM core components
  2. reBEM reset theme
  3. Simple inline theme based on Bootstrap 3. It'll give you the basic understanding on how to create your own themes.
  4. App itself

Feel free to create and use your own.

Testing

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

run tests in TDD mode

npm start tdd

run tests once

npm start test