@modern-js/create
provides the --plugin
parameter to run the generator plugin project.
--plugin
supports three formats:
Suitable for local development and debugging. After development is completed, build the project by running npm run build
in the generator plugin project, and then use the following command for testing:
Suitable for local development and debugging or when the generator plugin project and the target project to be created are in the same Monorepo and there is no need to publish an NPM package. After building the generator plugin project, use the following command:
Suitable for scenarios where the generator project is published on npm for sharing.