/backbone-webpack-boilerplate

A basic Backbone boilerplate, configured with Webpack, Karma/Mocha+Chai/Webio+Cucumber, with support for ES6.

Primary LanguageJavaScript

backbone-webpack-boilerplate

A basic Backbone boilerplate, configured with Webpack, Karma/Mocha+Chai/WebdriverIO+Cucumber, with support for ES6.

TODO

  • production webpack config
  • webpack config consolidation
  • setup backbone

Setup

git clone http://github.com/mikechau/backbone-webpack-boilerplate.git
cd backbone-webpack-boilerplate && npm install

Selenium

Selenium must be installed and running in order to run integration tests.

Global Install (recommended)

./bin/install/selenium.sh (may need to use sudo)
selenium-standalone start

Local Install

npm run selenium:install
npm run selenium:start

Testing

  • npm run test - run integration and unit tests
  • npm run test:integration - run only integration tests (WebdriverIO)
  • npm run test:unit - run only unit tests (karma)

References