Ready to TDD boilerplate
JavaScript
Switch branches/tags
Latest commit 988e466 Oct 5, 2015 @x2es x2es Merge pull request #7 from x2es/upgrade-0.2.0
upgrade 0.2.0

README.md

Deprecation note

Since ES6/7 with babel+webpack/browserefy becomes usefull this days RequireJS looks a bit outdated.

ReactJS community have a lot of sample code written in ES6/7 in isomorphic style.

Boilerplate for Karma-runner + mocha + chai + requirejs

This is boilerplate with ready to TDD:

See details: http://karma-runner.github.io/0.8/plus/RequireJS.html

Directories layout

$ tree
.
├── js
│   ├── lib         => place for source files
│   ├── spec        => place for *_spec.js files
│   │   └── sample_spec.js
│   └── vendor      => place for vendor libs
├── karma.conf.js   => karma-runner configuration
├── karma_html      => html-reporter output (appears after first run)
├── karma_sound     => samples for customization karma-mp3-reporter (see karma.conf.js)
├── package.json
├── test            => according to mocha.opts specific this directory contains:
│   ├── mocha.opts    >> default ARGV opts for mocha console command (not used for front-end js)
│   └── test-main.js  >> requirejs entry point for tests
├── README.md
└── UserStories.md  => mind-set for building this project

Setup

$ npm install

Start karma

$ karma start

Additional features

Besides usual components this boilerplate contains: