Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
/ ioc-test Public archive

Very simple example of using babel and Intravenous together

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

blacksun1/ioc-test

Repository files navigation

ioc-test

Build Status Coverage Status

To run

grunt
node ./

To run

grunt
npm test

How does it work?

It tries to show off EVERYTHING as a component - even the application. server simply calls the bootstrapper which returns the IOC container, get the app component and then calls run on it. Job done.

The bootstrapper works by combining what I'm calling "registration modules" which are modules that look like this

import Something from "./something";


export default function(container) {

    container.register("something", something);

    return;
}

and then the bootstrapper just needs to pass in the Intravenous container object and then the module does all of the work of registering the objects. In a real application these could be in the context root seperated by concern, or they could be part of the package which is providing the services.

Hope you like it.

About

Very simple example of using babel and Intravenous together

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published