shacl-vue/docs/deploy-runtime-plugins.md
Stephan Heunis 64f7aad4ed
All checks were successful
Deploy on webserver / Build docs and deploy (push) Successful in 34s
Build shacl-vue / build (push) Successful in 48s
docs: update deployment features documentation
2026-11-05 21:35:32 +02:00

20 lines
No EOL
1.2 KiB
Markdown

---
layout: doc
---
# Deployment feature: Runtime plugins
`shacl-vue` supports the use of plugin modules and plugin components that are supplied at build time and added dynamically to the application at startup. This functionality allows complex and domain-specific logic and UI to be included in a `shacl-vue` instance, while the `shacl-vue` source keeps its domain-agnosticity. It was developed in part because of the need to inject complex functionality and rendering logic into the [Wizard Editor](./features-wizard-editors) mechanism.
To register new plugins for a specific instance, plugin code have to be added to a plugin-specific directory under `./src/runtime-plugins` in the source code repo before a build. The plugin directory SHOULD contain a plugin module at `<plugin-name>/index.js` and MAY contain VueJS components at `<plugin-name>/*.vue`. An example would be:
```
src/runtime-plugins
└── doi
├── DOIFetcher.vue
└── index.js
```
Here the plugin name is `doi`, and the directory contains the `index.js` module along with a `DOIFetcher.vue` component.
Any plugins provided in this way before a build will be registered globally on app startup.