@nx/plugin:e2e-project
Create an E2E app for a Nx Plugin.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Create an E2E app for a Nx Plugin.
Scaffolds an E2E project for the plugin my-plugin
.
1nx g @nx/plugin:e2e-project --pluginName my-plugin --npmPackageName my-plugin --pluginOutputPath dist/my-plugin
2
1nx generate e2e-project ...
2
By default, Nx will search for e2e-project
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/plugin:e2e-project ...
2
Show what will be generated without writing to disk:
1nx g e2e-project ... --dry-run
2
the package name of the plugin as it would be published to NPM.
the project name of the plugin to be tested.
the output path of the plugin after it builds.
Jest config file.
eslint
eslint
, none
The tool to use for running lint checks.
false
Generate the e2e project with a minimal setup. This would involve not generating tests for a default executor and generator.
the directory where the plugin is placed.
as-provided
, derived
Whether to generate the project name and root directory as provided (as-provided
) or generate them composing their values and taking the configured layout into account (derived
).
false
Skip formatting files.