0.1.13 • Published 8 years ago

barmanjs v0.1.13

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

barmanjs

A minimalist application to support bottlejs dependency injection through a simple configuration file.

Configuration format

All you need is to declare a simple JS file with the following format:

import MyFirstService from './my-first-service';
import MySecondService from './my-second-service

services: [
  {
    name: 'my.first-service',
    definition: MyFirstService,
    parameters: ['my.second-service']
  },
  {
    name: 'my.second-service',
    definition: MySecondService
  }
],

parameters: {
  api_endpoint: "https://my-apis.com/endpoint"
}

Services can be declared in a random order as the Barman will handle dependencies

Cyclic dependencies

Cyclic dependencies are not supported and a Cyclic dependency detected Error will be triggered.

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.3

8 years ago