Dependency Injection for Node.js. Heavily inspired by AngularJS.

This readme describes how to set up your working space in order to run the tests and hack on it. See How can I use it on how to use this DI framework in your project.
bash
Clone this repo (or your fork).
git clone https://github.com/angular/di.js.gitInstall all the the dev dependencies, such as Karma, Gulp, etc.
npm installIf you wanna use "karma" or "gulp" commands, install also:
npm install -g karma-cli
npm install -g gulp
`$3
This will start Karma and Chrome (with --harmony enabled). Karma will watch the source code and run the tests anytime you save a change.`bash
karma start
`$3
All the source code is written in the upcoming version of JavaScript - ES6. In order to use it in the current browsers you need to transpile the code into ES5 using [Traceur].
`bash
Transpile ES6 into ./compiled/*
gulp buildWatch all the sources and transpile on any change
gulp watch
`
$3
`bash
gulp build_examples
gulp serve
``I talked about this DI framework at the [ng-conf], here are some more links...
- video
- slides (annotated version)
Also, here is the original design doc, which is quickly becoming out-dated ;-)
[Traceur]: https://github.com/google/traceur-compiler
[ng-conf]: http://ng-conf.org/