0.1.4 • Published 2 years ago

@rocketmakers/template-services v0.1.4

Weekly downloads
-
License
UNLICENSED
Repository
gitlab
Last release
2 years ago

@rocketmakers/template-services

Set of service classes required to manage Rocketmakers templates

Implementation

When using @rocketmakers/template-services there are two options to register service classes with your ioc framework.

Option #1:

If you only want to register classes as needed, or inject alternative repository layers, you can bootstrap services as you would with any other class.

Option #2:

You can bootstrap template service classes using the exposed registerTemplateServiceIoC() function by following the steps below. This will register all service classes, using injected git http template repository classes from @rocketmakers/template-http-repository (you must install this as a dependency).

// Register types and repository classes from @rocketmakers/template-http-repository
registerTemplateRepositoryIoC({ rootTemplateRepoUrl, notifyServiceName });

// Register template types and services from @rocketmakers/template-services
registerTemplateServiceIoC();

Docs

Hosted docs covering types, interfaces and all service class/method signatures within this package can be found using the link below:

Documentation

Source code

Source code for this package can be found using the link below:

Source code

Contributing docs can be found in the README.md