@ram-stack/composition-root

2.0.0 • Public • Published

ram-stack/composition-root macro

composition-root is a Babel macro for defining an application composition root and autowiring. It is intended to streamline setting up a convention based application structure and automate populating of a Dependency injection container.

Application structure is represented as a set of rules describing where to locate the files, how to get exported things from them and, eventually, how to register those things in a container. All the files following the configured convention will be automatically picked by Babel during compilation.

See Sample app for a reference setup of React Awilix MobX application.

Package Sidebar

Install

npm i @ram-stack/composition-root

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

32.1 kB

Total Files

35

Last publish

Collaborators

  • invictusmb