Dev environments usually include component generator templates. To use new templates, choose the desired env below:
Configure the chosen development environment Component ID in your workspace.jsonc:
// workspace.jsonc { "teambit.generator/generator": { "envs": ["teambit.node/node"] } }
Make sure the chosen env is installed by running the following command:
Run the following command to list all the component templates available in your workspace:
Run the following command to generate a new component using a template:
Run the following command to list all the component templates provided by an env:
Run the following to create a new component using a template from an env:
A generator is not only responsible for generating the component's files, but also for creating the component's configuration, mainly, the component's env.
To override the generator's default env, use the --override
flag: