<!-- 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: Jack Hsu <jack.hsu@gmail.com>
104 lines
3.3 KiB
JSON
104 lines
3.3 KiB
JSON
{
|
|
"name": "new",
|
|
"factory": "./src/generators/new/new#newGenerator",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "NxWorkspaceNew",
|
|
"title": "Create an empty workspace",
|
|
"description": "Create an empty workspace.",
|
|
"type": "object",
|
|
"cli": "nx",
|
|
"properties": {
|
|
"name": {
|
|
"description": "The name of the workspace.",
|
|
"type": "string",
|
|
"$default": { "$source": "argv", "index": 0 },
|
|
"x-prompt": "What name would you like to use for the workspace?"
|
|
},
|
|
"style": {
|
|
"description": "The file extension to be used for style files.",
|
|
"type": "string",
|
|
"default": "css"
|
|
},
|
|
"routing": {
|
|
"description": "Add routing to the generated application.",
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"standaloneApi": {
|
|
"description": "Use Standalone Components if generating an Angular application.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"defaultBase": {
|
|
"type": "string",
|
|
"description": "Default base branch for affected."
|
|
},
|
|
"skipInstall": {
|
|
"description": "Skip installing dependency packages.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"preset": {
|
|
"description": "What to create in the new workspace.",
|
|
"type": "string"
|
|
},
|
|
"appName": { "type": "string", "description": "Application name." },
|
|
"linter": {
|
|
"description": "The tool to use for running lint checks.",
|
|
"type": "string",
|
|
"enum": ["eslint"],
|
|
"default": "eslint"
|
|
},
|
|
"packageManager": {
|
|
"description": "The package manager used to install dependencies.",
|
|
"type": "string",
|
|
"enum": ["npm", "yarn", "pnpm", "bun"]
|
|
},
|
|
"framework": {
|
|
"description": "The framework which the application is using",
|
|
"type": "string",
|
|
"enum": ["express", "koa", "fastify", "nest", "none"]
|
|
},
|
|
"nextAppDir": {
|
|
"description": "Enable the App Router for this project.",
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nextSrcDir": {
|
|
"description": "Generate a `src` directory for this project.",
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"e2eTestRunner": {
|
|
"description": "The tool to use for running e2e tests.",
|
|
"type": "string",
|
|
"enum": ["playwright", "cypress", "jest", "detox", "none"]
|
|
},
|
|
"ssr": {
|
|
"description": "Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"prefix": {
|
|
"description": "The prefix to use for Angular component and directive selectors.",
|
|
"type": "string"
|
|
},
|
|
"formatter": {
|
|
"description": "The tool to use for code formatting.",
|
|
"type": "string",
|
|
"enum": ["none", "prettier"],
|
|
"default": "none"
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"presets": []
|
|
},
|
|
"description": "Create a workspace.",
|
|
"hidden": true,
|
|
"implementation": "/packages/workspace/src/generators/new/new#newGenerator.ts",
|
|
"aliases": [],
|
|
"path": "/packages/workspace/src/generators/new/schema.json",
|
|
"type": "generator"
|
|
}
|