Jack Hsu 27edf71cef
feat(misc): make directory a required option for generators (#28093)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

---------

Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
2024-10-01 09:29:44 -04:00

74 lines
2.3 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"
},
"js": {
"type": "boolean",
"description": "Generate JavaScript files rather than TypeScript files.",
"default": false
},
"linter": {
"description": "The tool to use for running lint checks.",
"type": "string",
"enum": ["eslint", "none"],
"default": "eslint"
},
"unitTestRunner": {
"type": "string",
"enum": ["vitest", "jest", "none"],
"default": "vitest",
"description": "Test runner to use for unit tests.",
"x-prompt": "What unit test runner should be used?"
},
"e2eTestRunner": {
"type": "string",
"enum": ["playwright", "cypress", "none"],
"default": "playwright",
"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
}
},
"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"
}