Use in existing projects

Components can be installed in legacy project using Bit or other standard packages managers. As needed you can import components for debugging, testing or for applying changes in the desired context.

Using package managers

Once components are released, you can install them using your preferred package manager:

$pnpm i @teambit/design.inputs.dropdown
Copiedcopy

Configure your npmrc to the Bit registry, or use Bit from your private registry.

Importing components

You can import components for debugging, testing or for applying changes in the desired context by running the following command:

$bit
Copiedcopy

After testing, debugging or changing the component you can either eject it using bit eject or bit export --eject in case you would looking to release a change.

Use from your private registry

You can setup an private registry as a reverse proxy for your Bit packages.

Using Bit

Run the following to install the component as an external dependency:

$bit
Copiedcopy
See command synopsis

You can install packages from NPM in same way you use components:

$bit
Copiedcopy

Harmony features

Using Harmony features in existing projects can be achieved by installing the @bitdev/harmony.harmony package and in existing your project. Create an Harmony application instance and use install the required features using your package manager of choice.

Learn more