Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support developing multiple components locally #85

Open
eladav opened this issue Dec 29, 2019 · 1 comment
Open

Support developing multiple components locally #85

eladav opened this issue Dec 29, 2019 · 1 comment

Comments

@eladav
Copy link
Contributor

eladav commented Dec 29, 2019

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.

@EladBezalel
Copy link
Contributor

EladBezalel commented Dec 29, 2019

root level dcmconfig.ts

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

possible other operations:

  • publish all
  • check compatibility with host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants