Support developing multiple components locally
We want to allow users to have multiple components run in dev mode. The solution we suggest is to create a "workspace" mode for dcm that will bundle all components in the workspace. In the host app side you'll need to set either all the components you want to have in dev mode to be in dev mode or set a property that initializes the client in dev mode.
The suggested workflow is: User sets Dynamico client to dev mode (the react client). Loads dcm with a workspace configuration. dcm scans the workspace and bundles and serves every folder with a package.json. The host app tries to load a component locally and if it fails to get a proper response (or gets a dedicated response) tries to download it from the public registry.
root level dcmconfig.ts
export default {
workspaces: [
"components/*",
"view/*"
],
}
possible other operations:
- publish all
- check compatibility with host