Generators
Documents the generators provided by the Nx Forge plugin.
Append --help
or -h
for any of the plugin generators to explore all available options.
Application
shell
nx generate @toolsplus/nx-forge:app <nx-forge-app-name>
Generates a blank Forge app project named <nx-forge-app-name>
. In almost all cases, you probably want to run the Forge app registration task immediately after this generator to register the app with the Forge platform.
Properties
- name
required
- Name of the application.
- Type:
string
- directory
- Directory where the project is placed
- Type:
string
- bundler
- Bundler which is used to package the application
- Type:
string
- The value is restricted to the following:
- "esbuild"
- "webpack"
- Default: "webpack"
- projectNameAndRootFormat
- 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
). - Type:
string
- The value is restricted to the following:
- "as-provided"
- "derived"
- Whether to generate the project name and root directory as provided (
- skipFormat
- Skip formatting files.
- Type:
boolean
- Default: false
- linter
- Tool to use for running lint checks.
- Type:
string
- The value is restricted to the following:
- "eslint"
- "none"
- Default: "eslint"
- unitTestRunner
- Test runner to use for unit tests.
- Type:
string
- The value is restricted to the following:
- "jest"
- "none"
- Default: "jest"
- tags
- Add tags to the project (used for linting)
- Type:
string
- swcJest
- Use
@swc/jest
insteadts-jest
for faster test compilation. - Type:
boolean
- Default: false
- Use
- babelJest Deprecated
- Use
babel
instead ofts-jest
. - Type:
boolean
- Default: false
- Deprecated: Use
--swcJest
instead
- Use
- js
- Generate JavaScript files rather than TypeScript files.
- Type:
boolean
- Default: false
- setParserOptionsProject
- Whether or not to configure the ESLint
parserOptions.project
option. We do not do this by default for lint performance reasons. - Type:
boolean
- Default: false
- Whether or not to configure the ESLint