di
Dependency Injection for Node.js. Heavily inspired by AngularJS.
Last updated 12 years ago by vojtajina .
MIT · Repository · Original npm · Tarball · package.json
$ npm install di 
SYNC missed versions from official npm registry.

Build Status

Dependency Injection v2

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.

Installation

# Clone this repo (or your fork).
git clone https://github.com/angular/di.js.git

# Install all the the dev dependencies, such as Karma, Gulp, etc.
npm install

# If you wanna use "karma" or "gulp" commands, install also:
npm install -g karma-cli
npm install -g gulp

Running the tests

This will start Karma and Chrome (with --harmony enabled). Karma will watch the source code and run the tests anytime you save a change.

karma start

Transpiling ES6

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.

# Transpile ES6 into ./compiled/*
gulp build

# Watch all the sources and transpile on any change
gulp watch

Examples

gulp build_examples
gulp serve

More stuff

I talked about this DI framework at the ng-conf, here are some more links...

Also, here is the original design doc, which is quickly becoming out-dated ;-)

Current Tags

  • 0.0.1                                ...           latest (12 years ago)
  • 2.0.0-pre-14                                ...           v2 (10 years ago)

17 Versions

  • 2.0.0-pre-14                                ...           10 years ago
  • 2.0.0-pre-13                                ...           10 years ago
  • 2.0.0-pre-12                                ...           10 years ago
  • 2.0.0-pre-11                                ...           10 years ago
  • 2.0.0-pre-10                                ...           11 years ago
  • 2.0.0-pre-9                                ...           11 years ago
  • 2.0.0-pre-8                                ...           11 years ago
  • 2.0.0-pre-7                                ...           11 years ago
  • 2.0.0-pre-6                                ...           11 years ago
  • 2.0.0-pre-5                                ...           11 years ago
  • 2.0.0-pre-4                                ...           11 years ago
  • 2.0.0-pre-3                                ...           11 years ago
  • 2.0.0-pre-2                                ...           11 years ago
  • 2.0.0-pre-1                                ...           11 years ago
  • 1.9.0                                ...           11 years ago
  • 0.0.1                                ...           12 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 16
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE