1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "NxWorkspacePreset",
|
4 | "cli": "nx",
|
5 | "title": "Creates applications in a new workspace",
|
6 | "description": "Creates applications in a new workspace.",
|
7 | "type": "object",
|
8 | "properties": {
|
9 | "preset": {
|
10 | "description": "The name of the preset.",
|
11 | "type": "string"
|
12 | },
|
13 | "name": {
|
14 | "description": "The name of the application.",
|
15 | "type": "string"
|
16 | },
|
17 | "npmScope": {
|
18 | "description": "Npm scope for importing libs.",
|
19 | "type": "string"
|
20 | },
|
21 | "cli": {
|
22 | "description": "CLI powering the workspace.",
|
23 | "type": "string"
|
24 | },
|
25 | "linter": {
|
26 | "description": "The tool to use for running lint checks.",
|
27 | "type": "string",
|
28 | "enum": ["eslint"],
|
29 | "default": "eslint"
|
30 | },
|
31 | "style": {
|
32 | "description": "The file extension to be used for style files.",
|
33 | "type": "string",
|
34 | "default": "css",
|
35 | "x-prompt": {
|
36 | "message": "Which stylesheet format would you like to use?",
|
37 | "type": "list",
|
38 | "items": [
|
39 | {
|
40 | "value": "css",
|
41 | "label": "CSS"
|
42 | },
|
43 | {
|
44 | "value": "scss",
|
45 | "label": "SASS(.scss) [ http://sass-lang.com ]"
|
46 | },
|
47 | {
|
48 | "value": "styl",
|
49 | "label": "Stylus(.styl)[ http://stylus-lang.com ]"
|
50 | },
|
51 | {
|
52 | "value": "less",
|
53 | "label": "LESS [ http://lesscss.org ]"
|
54 | }
|
55 | ]
|
56 | }
|
57 | },
|
58 | "standaloneConfig": {
|
59 | "description": "Split the project configurations into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
60 | "type": "boolean"
|
61 | },
|
62 | "packageManager": {
|
63 | "description": "The package manager used to install dependencies.",
|
64 | "type": "string",
|
65 | "enum": ["npm", "yarn", "pnpm"]
|
66 | }
|
67 | }
|
68 | }
|