Skip to main content

Component Library Configuration

Configuration Example

cloudbaserc.json

{
"envId": "{{envId}}",
"lowcodeCustomComponents": {
"name": "demo",
"configRoot": "./src/configs",
"platformRoot": {
"web": "./src/web",
"mp": "./src/mp"
}
}
}

Configuration Parameters Description

Low-code users only need to care about the parameters under lowcodeCustomComponents.

name

Required. The identifier of the component library, used to associate the local component library with the cloud component library.

configRoot

Required. The root directory of the configuration file.

Component configuration files and component icon files should be placed under $configRoot/components.

Action configuration files should be placed under $configRoot/actions.

platformRoot

Source Code Root Directory

platformRoot.mp

Mini Program Source Code Root Directory

Component source code should be placed under ${platformRoot.mp}/components.

Action source code should be placed under ${platformRoot.mp}/actions.

platformRoot.web

Web Source Code Root Directory

Component source code should be placed under ${platformRoot.web}/components.

Action source code should be placed under ${platformRoot.web}/actions.