dynamico icon indicating copy to clipboard operation
dynamico copied to clipboard

Support developing multiple components locally

Open eladav opened this issue 6 years ago • 1 comments

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.

eladav avatar Dec 29 '19 12:12 eladav

root level dcmconfig.ts

export default {
  workspaces: [
    "components/*",
	"view/*"
  ],
}

possible other operations:

  • publish all
  • check compatibility with host

EladBezalel avatar Dec 29 '19 12:12 EladBezalel