0.3.3 • Published 11 years ago

di-lite v0.3.3

Weekly downloads
31
License
-
Repository
github
Last release
11 years ago

build status

di-lite.js

di-lite is designed to act as a minimalistic dependency injection container in Javascript. It has no dependency on any other framework such as CommonJs or RequireJs in contrary to some of other more heavy weight DI container implementation on the web.

Use Cases

di-lite is initially extracted from a Backbone.js based application. In this application, RequireJs is used to wire dependencies at module level. Each module could contain multiple views and models. We found using RequireJs to wire every individual view and model is a bit of overkill and verbose, however we still want the inversion of control to keep our code nicely isolated and testable. That's the reason behind the creation of this lightweight container implementation - to provide dependencies injection at sub-modular level. di-lite can also be used standalone as a light-weight alternative to RequireJs if your application is small enough.

Install with npm

npm install di-lite

Install without npm

Download

How to build di-lite locally

Prerequisite modules

Make sure the following packages are installed on your machine

  • node.js
  • npm
  • apache ant

Install dependencies

di-lite$ npm install

Build and Test

di-lite$ ./make

License

di-lite is an open source javascript library and licensed under Apache License v2.

0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.1

11 years ago