@ram-stack/composition-root
v2.0.0
Published
Babel macro to define application composition root
Downloads
8
Maintainers
Readme
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.