indorse-extension
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
67 lines (43 loc) • 1.91 kB
Markdown
# IndorseExtension
This library was generated with [Angular CLI](https://github.com/angular/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](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
## Manual Installation
Install the extension library
```sh
npm i indorse-extension
```
Update the `extensions.module.ts` and import corresponding module.
```ts
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:
```json
{
"glob": "**/*.json",
"input": "node_modules/indorse-extension/assets",
"output": "./assets/plugins"
}
```
Update `app.extensions.json` and append a reference to the plugin definition:
```json
{
"$references": ["indorse-extension.plugin.json"]
}
```