Appearance
JavaScript Packages for Extensibility
Overview
Packages in AEPPIC are self-contained JavaScript modules that extend functionality in a secure, traceable way. They allow you to add custom components, logic, and assets while maintaining accountability through the document system.
Key Features
- Self-Contained: All code and assets must be bundled within the package
- ESM Support: Moving towards ECMAScript Modules only for simplified compatibility
- Document-Based: Packages are stored as
package
type documents for traceability - Security-Focused: No arbitrary internet imports allowed by default
Package Structure
aeppic.json
The package manifest file that defines package contents and exports:
json
{
"type": "module",
"exports": {
".": "./dist/@aeppic-packages/workflow.js"
},
"assets": [
],
"components": [
"WorkflowGraph"
]
}
json
{
"exports": {
".": "./dist/vue-monaco-editor.js"
},
"components": [
"MonacoEditor"
],
"assets": [
"./dist"
],
"styles": [
"./dist/vue-monaco-editor.css"
]
}