dicola

0.2.0 • Public • Published

dicola

DI COntainer 4 Layered Architecture.

This DI Container is for Clean Archetechture. Only support single depency direction.

Is it a useless? Yes, I think so. But it provides DI Container with so tiny bundle size.

install

npm install dicola reflect-metadata --save

You should configure tsconfig.json.

{
    "compilerOptions": {
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true
    }
}

how to use

please show examples.

public API is @injectable(), @inject(${className/Symbol}), Container.getInstance().resolve(${Constructor}).

(dicola provide a singleton container.)

For developer

If you meke PR, please checkout feature/** and set target to master. Please follow Github Flow

setup

setup library

$ yarn install

check example

$ yarn run dev:watch

FYI

Readme

Keywords

none

Package Sidebar

Install

npm i dicola

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

13.6 kB

Total Files

10

Last publish

Collaborators

  • sadness.ojisan