1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "NxWorkspaceNew",
|
4 | "title": "Create an empty workspace",
|
5 | "description": "Create an empty workspace.",
|
6 | "type": "object",
|
7 | "cli": "nx",
|
8 | "properties": {
|
9 | "name": {
|
10 | "description": "The name of the workspace.",
|
11 | "type": "string",
|
12 | "$default": {
|
13 | "$source": "argv",
|
14 | "index": 0
|
15 | },
|
16 | "x-prompt": "What name would you like to use for the workspace?"
|
17 | },
|
18 | "style": {
|
19 | "description": "The file extension to be used for style files.",
|
20 | "type": "string",
|
21 | "default": "css"
|
22 | },
|
23 | "routing": {
|
24 | "description": "Add routing to the generated application.",
|
25 | "type": "boolean",
|
26 | "default": true
|
27 | },
|
28 | "npmScope": {
|
29 | "type": "string",
|
30 | "description": "Npm scope for importing libs."
|
31 | },
|
32 | "standaloneApi": {
|
33 | "description": "Use Standalone Components if generating an Angular application.",
|
34 | "type": "boolean",
|
35 | "default": false
|
36 | },
|
37 | "defaultBase": {
|
38 | "type": "string",
|
39 | "description": "Default base branch for affected."
|
40 | },
|
41 | "skipInstall": {
|
42 | "description": "Skip installing dependency packages.",
|
43 | "type": "boolean",
|
44 | "default": false
|
45 | },
|
46 | "preset": {
|
47 | "description": "What to create in the new workspace.",
|
48 | "type": "string"
|
49 | },
|
50 | "appName": {
|
51 | "type": "string",
|
52 | "description": "Application name."
|
53 | },
|
54 | "nxCloud": {
|
55 | "description": "Connect the workspace to the free tier of the distributed cache provided by Nx Cloud.",
|
56 | "type": "boolean",
|
57 | "default": false
|
58 | },
|
59 | "linter": {
|
60 | "description": "The tool to use for running lint checks.",
|
61 | "type": "string",
|
62 | "enum": ["eslint"],
|
63 | "default": "eslint"
|
64 | },
|
65 | "packageManager": {
|
66 | "description": "The package manager used to install dependencies.",
|
67 | "type": "string",
|
68 | "enum": ["npm", "yarn", "pnpm"]
|
69 | },
|
70 | "framework": {
|
71 | "description": "The framework which the application is using",
|
72 | "type": "string",
|
73 | "enum": ["express", "koa", "fastify", "connect"]
|
74 | }
|
75 | },
|
76 | "additionalProperties": true
|
77 | }
|