Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

AlfrescoArchive/aca-extension-example

Repository files navigation

ACA Extension Example

Provides an Angular workspace setup for Alfresco Content Application (ACA) extensions.

Please also refer to the Extensibility documentation.

This project contains:

  • Blank Angular application
  • Simple ACA extension project featuring:
    • Extra application route backed by custom component
    • New side navigation link
  • ADF dependencies (Extensions, Core and Content Services)
  • Scripts to build, package and publish extension libraries

You can create multiple libraries in the same workspace.

See also:

Important: you can also create and test extension libraries as part of the ACA project clone. See: Redistributable libraries article for more details.

Building

Run the following script to build the library

npm run build:my-extension

Publishing

cd dist/my-extension
npm publish --access=public

Testing with local ACA instance

Build and package the extension library locally without publishing to NPM:

npm run package:my-extension

The script produces the dist/my-extension/my-extension-0.0.1.tgz file that can be used to install dependency.

Switch to the ACA project and run:

npm i <path>/aca-extension-example/dist/my-extension/my-extension-0.0.1.tgz

Update the extensions.module.ts file and append the module:

import { MyExtensionModule } from 'my-extension';

@NgModule({
  imports: [
    ...,
    MyExtensionModule
  ]
})
export class AppExtensionsModule {}

Update the app.extensions.json file and register new plugin:

{
  "$schema": "../../extension.schema.json",
  "$name": "app",
  "$version": "1.0.0",
  "$references": [
    "my-extension.json"
  ],
}

Copy dist/assets/my-extension.json to the src/assets/plugins folder.

Run the ACA application

npm start

Depending on the setup, you might need to log in as an administrator and enable external plugins feature for your local run.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published