0.0.1 • Published 4 years ago

indorse-extension v0.0.1

Weekly downloads
3
License
-
Repository
-
Last release
4 years ago

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-extension or else it will be added to the default project in your angular.json file.

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-extension

Update 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"]
}