1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "SchematicsNxNgNew",
|
4 | "cli": "nx",
|
5 | "title": "Create an empty workspace",
|
6 | "description": "Create an empty workspace.",
|
7 | "type": "object",
|
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 | "x-prompt": {
|
23 | "message": "Which stylesheet format would you like to use?",
|
24 | "type": "list",
|
25 | "items": [
|
26 | { "value": "css", "label": "CSS" },
|
27 | {
|
28 | "value": "scss",
|
29 | "label": "SASS(.scss) [ http://sass-lang.com ]"
|
30 | },
|
31 | {
|
32 | "value": "styl",
|
33 | "label": "Stylus(.styl)[ http://stylus-lang.com ]"
|
34 | },
|
35 | {
|
36 | "value": "less",
|
37 | "label": "LESS [ http://lesscss.org ]"
|
38 | }
|
39 | ]
|
40 | }
|
41 | },
|
42 | "directory": {
|
43 | "type": "string",
|
44 | "format": "path",
|
45 | "description": "The directory name to create the workspace in.",
|
46 | "default": ""
|
47 | },
|
48 | "preset": {
|
49 | "type": "string",
|
50 | "description": "Preset of the workspace."
|
51 | },
|
52 | "npmScope": {
|
53 | "type": "string",
|
54 | "description": "Npm scope for importing libs."
|
55 | },
|
56 | "defaultBase": {
|
57 | "type": "string",
|
58 | "description": "Default base branch for affected."
|
59 | },
|
60 | "skipInstall": {
|
61 | "description": "Skip installing dependency packages.",
|
62 | "type": "boolean",
|
63 | "default": false
|
64 | },
|
65 | "packageManager": {
|
66 | "description": "The package manager used to install dependencies.",
|
67 | "type": "string",
|
68 | "enum": ["npm", "yarn", "pnpm"]
|
69 | }
|
70 | }
|
71 | }
|