indorse-extension v0.0.1
IndorseExtension
This library was generated with Angular CLI version 7.2.0.
Code scaffolding
Run ng generate component component-name --project indorse-extension to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project indorse-extension.
Note: Don't forget to add
--project indorse-extensionor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build indorse-extension to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build indorse-extension, go to the dist folder cd dist/indorse-extension and run npm publish.
Running unit tests
Run ng test indorse-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 { IndorseExtensionModule } from '@alfresco/adf-office-services-ext';
// Main entry point for external extensions only.
// For any application-specific code use CoreExtensionsModule instead.
@NgModule({
imports: [IndorseExtensionModule]
})
export class AppExtensionsModule {}Setup the resource references in the angular.json assets section:
{
"glob": "**/*.json",
"input": "node_modules/indorse-extension/assets",
"output": "./assets/plugins"
}Update app.extensions.json and append a reference to the plugin definition:
{
"$references": ["indorse-extension.plugin.json"]
}6 years ago