Leosvel Pérez Espinosa cbf80c18d1
feat(misc): add useProjectJson flag to project generators (#30319)
Add a `useProjectJson` option to project generators to allow users to
opt in/out of generating the Nx configuration in a `project.json` file.

## Current Behavior

## Expected Behavior

## Related Issue(s)

Fixes #
2025-03-11 12:12:03 -04:00

76 lines
2.4 KiB
JSON

{
"name": "application",
"implementation": "/packages/remix/src/generators/application/application.impl#remixApplicationGeneratorInternal.ts",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxRemixApplication",
"title": "Create an Application",
"description": "Generate a new Remix application.",
"type": "object",
"properties": {
"directory": {
"type": "string",
"description": "A directory where the app is placed.",
"alias": "dir",
"$default": { "$source": "argv", "index": 0 },
"x-prompt": "Which directory do you want to create the application in?"
},
"name": {
"type": "string",
"description": "The name of the application.",
"x-priority": "important"
},
"linter": {
"description": "The tool to use for running lint checks.",
"type": "string",
"enum": ["eslint", "none"],
"default": "none",
"x-prompt": "Which linter would you like to use?",
"x-priority": "important"
},
"unitTestRunner": {
"type": "string",
"enum": ["vitest", "jest", "none"],
"default": "none",
"description": "Test runner to use for unit tests.",
"x-prompt": "What unit test runner should be used?",
"x-priority": "important"
},
"e2eTestRunner": {
"type": "string",
"enum": ["playwright", "cypress", "none"],
"default": "none",
"description": "Test runner to use for e2e tests",
"x-prompt": "Which E2E test runner would you like to use?"
},
"tags": {
"type": "string",
"description": "Add tags to the project (used for linting)",
"alias": "t"
},
"skipFormat": {
"type": "boolean",
"description": "Skip formatting files",
"default": false
},
"rootProject": {
"type": "boolean",
"x-priority": "internal",
"default": false
},
"useProjectJson": {
"type": "boolean",
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
}
},
"required": ["directory"],
"presets": []
},
"description": "Generate a new Remix application",
"aliases": ["app"],
"x-type": "application",
"hidden": false,
"path": "/packages/remix/src/generators/application/schema.json",
"type": "generator"
}