0.0.1 • Published 4 years ago

etpl-extension v0.0.1

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

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

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

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

4 years ago