/javascript-coding-dojo

A simple framework for JavaScript coding dojo sessions.

Primary LanguageJavaScriptMIT LicenseMIT

JavaScript Coding Dojo

What is it?

This a very simple framework for JavaScript Coding Dojo sessions, based on the "Sandbox" pattern. You can perform your exercises and write tests with Jasmine, while JSHint and the test runner Karma keep their eyes on your code - with the help of Grunt. In addition, Plato analyzes the code complexity and generates reports.

How to install?

  1. Install node.js and npm
  2. $ git clone git@github.com:nosch/javascript-coding-dojo.git "javascript-coding-dojo"
  3. $ cd javascript-coding-dojo
  4. $ npm install (installs grunt, karma and plato)

How to use?

  • $ grunt kata (starts JSHint and a local webserver with livereload)
  • $ grunt test (starts Karma to run and watch unit tests)
  • $ grunt analyze (generates code complexity reports: reports/index.html)
  • Unit tests reside in test/unit/**/*.spec.js
  • Katas are located in src/kata/**/*.js
  • Happy coding!