etpl-extension v0.0.1
EtplExtension
This library was generated with Angular CLI version 7.2.0.
Code scaffolding
Run ng generate component component-name --project etpl-extension to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project etpl-extension.
Note: Don't forget to add
--project etpl-extensionor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build etpl-extension to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build etpl-extension, go to the dist folder cd dist/etpl-extension and run npm publish.
Running unit tests
Run ng test etpl-extension to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
Manual Installation
Install the extension library
npm i indorse-extensionUpdate the extensions.module.ts and import corresponding module.
import { NgModule } from '@angular/core';
import { EtplExtensionModule } from '@alfresco/etpl-extension';
// Main entry point for external extensions only.
// For any application-specific code use CoreExtensionsModule instead.
@NgModule({
imports: [EtplExtensionModule]
})
export class AppExtensionsModule {}Setup the resource references in the angular.json assets section:
{
"glob": "**/*.json",
"input": "node_modules/etpl-extension/assets",
"output": "./assets/plugins"
}Update app.extensions.json and append a reference to the plugin definition:
{
"$references": ["etpl-extension.plugin.json"]
}6 years ago