dhis2_configure_build_system
Configure build system for DHIS2 apps by setting up d2.config.js, webpack, entry points, custom authorities, PWA features, and proxy options to streamline development and deployment.
Instructions
Set up build system configuration for DHIS2 app (d2.config.js, webpack, etc.)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
appName | Yes | Name of the application | |
customAuthorities | No | Custom authorities required by the app | |
entryPoints | No | ||
proxy | No | ||
publicPath | No | Public path for assets (for CDN deployment) | |
pwa | No |
Input Schema (JSON Schema)
{
"properties": {
"appName": {
"description": "Name of the application",
"type": "string"
},
"customAuthorities": {
"description": "Custom authorities required by the app",
"items": {
"type": "string"
},
"type": "array"
},
"entryPoints": {
"properties": {
"app": {
"description": "Main app entry point (default: \"./src/App.js\")",
"type": "string"
},
"plugin": {
"description": "Plugin entry point for dashboard widgets",
"type": "string"
}
},
"type": "object"
},
"proxy": {
"properties": {
"auth": {
"properties": {
"password": {
"description": "Password for proxy authentication",
"type": "string"
},
"username": {
"description": "Username for proxy authentication",
"type": "string"
}
},
"required": [
"username",
"password"
],
"type": "object"
},
"target": {
"description": "Proxy target DHIS2 instance URL",
"type": "string"
}
},
"required": [
"target"
],
"type": "object"
},
"publicPath": {
"description": "Public path for assets (for CDN deployment)",
"type": "string"
},
"pwa": {
"properties": {
"enabled": {
"description": "Enable PWA features",
"type": "boolean"
},
"workboxOptions": {
"description": "Workbox configuration for service worker",
"type": "object"
}
},
"type": "object"
}
},
"required": [
"appName"
],
"type": "object"
}