0.2.0 • Published 4 years ago

dicola v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago