You can use the CLI to build custom hubs for the platform. This process compiles the hubs and exports them as a .tgz packed archive.

How It Works

The CLI scans the packages/hubs/ directory for the specified hub. It checks the name in the package.json file. If the hub is found, it builds and packages it into a .tgz archive.

Usage

To build a hub, follow these steps:
  1. Ensure you have the CLI installed by cloning the repository.
  2. Run the following command:
npm run build-hub
You will be prompted to enter the name of the hub you want to build. For example:
? Enter the hub folder name : google-drive
The CLI will build the hub and you will be given the path to the archive. For example:
Hub 'google-drive' built and packed successfully at dist/packages/hubs/community/google-drive
You may also build the hub non-interactively by passing the hub name as an argument. For example:
npm run build-hub google-drive