loopback4-plus
v1.0.0
Published
An essential extension module for LoopBack applications.
Downloads
17
Readme
loopback4-plus
An essential extension module for LoopBack applications.
Installation
npm install loopback4-plus
IntegrateMixin
import { Application } from '@loopback/core';
import { IntegrateMixin } from 'loopback4-plus';
export class MyApplication extends IntegrateMixin(Application) {
constructor(options: ApplicationConfig = {}) {
super(options);
// ...
}
IntegrateMixin
will automatically integrate the following mixins:
BootMixin
ServiceMixin
RepositoryMixin
GetServiceMixin
- provide agetService
method likegetRepository
fromRepositoryMixin
Boot patching
The official @loopback/boot
module will load all js
artifacts in the projectRoot
directory. However, it will not
load ts
artifacts. This module will patch the @loopback/boot
module to load ts
artifacts as well.
You can apply the patch just import loopback4-plus
module or using the IntegrateMixin
as shown above.
import 'loopback4-plus';
License
MIT