Configuring Remote Scopes

Workspace Configurations

Use the Workspace Configuration to set a default Scope for all Components in the Workspace:

For example:

{
  "teambit.workspace/workspace": {
    "defaultScope": "my-org.my-scope"
  }
}
CopiedCopy

Variants

Variants can be used to set a group of components with a remote Scope. The following example sets the my-scope Scope on all components inside the my-scope directory.

For example:

{
  "teambit.workspace/variants": {
    "my-scope": {
      "defaultScope": "my-org.my-scope"
    }
  }
}
CopiedCopy

component.json

Use the scope property in the Component's component.json to set a remote Scope directly on that Component:

For example:

{
  "componentId": {
    "name": "ui/text",
    "version": "0.0.1",
    "scope": "company.scope"
  },
  "propagate": false,
  "extensions": {}
}
CopiedCopy

Configure a new remote

To learn more on configuring remote scopes head over to Using remotes in the Scope learning section.