UNPKG

4.88 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/schema",
3 "id": "SchematicsAngularNgNew",
4 "title": "Angular Ng New Options Schema",
5 "type": "object",
6 "properties": {
7 "directory": {
8 "type": "string",
9 "description": "The directory name to create the workspace in."
10 },
11 "name": {
12 "description": "The name of the new workspace and initial project.",
13 "type": "string",
14 "format": "html-selector",
15 "$default": {
16 "$source": "argv",
17 "index": 0
18 },
19 "x-prompt": "What name would you like to use for the new workspace and initial project?"
20 },
21 "skipInstall": {
22 "description": "When true, does not install dependency packages.",
23 "type": "boolean",
24 "default": false
25 },
26 "linkCli": {
27 "description": "When true, links the CLI to the global version (internal development only).",
28 "type": "boolean",
29 "default": false,
30 "visible": false
31 },
32 "skipGit": {
33 "description": "When true, does not initialize a git repository.",
34 "type": "boolean",
35 "default": false,
36 "alias": "g"
37 },
38 "commit": {
39 "description": "Initial git repository commit information.",
40 "oneOf": [
41 { "type": "boolean" },
42 {
43 "type": "object",
44 "properties": {
45 "name": {
46 "type": "string"
47 },
48 "email": {
49 "type": "string",
50 "format": "email"
51 },
52 "message": {
53 "type": "string"
54 }
55 },
56 "required": ["name", "email"]
57 }
58 ],
59 "default": true
60 },
61 "newProjectRoot": {
62 "description": "The path where new projects will be created, relative to the new workspace root.",
63 "type": "string",
64 "default": "projects"
65 },
66 "inlineStyle": {
67 "description": "When true, includes styles inline in the component TS file. By default, an external styles file is created and referenced in the component TS file.",
68 "type": "boolean",
69 "default": false,
70 "alias": "s",
71 "x-user-analytics": 9
72 },
73 "inlineTemplate": {
74 "description": "When true, includes template inline in the component TS file. By default, an external template file is created and referenced in the component TS file.",
75 "type": "boolean",
76 "default": false,
77 "alias": "t",
78 "x-user-analytics": 10
79 },
80 "viewEncapsulation": {
81 "description": "The view encapsulation strategy to use in the initial project.",
82 "enum": ["Emulated", "Native", "None", "ShadowDom"],
83 "type": "string",
84 "x-user-analytics": 11
85 },
86 "version": {
87 "type": "string",
88 "description": "The version of the Angular CLI to use.",
89 "visible": false,
90 "$default": {
91 "$source": "ng-cli-version"
92 }
93 },
94 "routing": {
95 "type": "boolean",
96 "description": "When true, generates a routing module for the initial project.",
97 "x-user-analytics": 17
98 },
99 "prefix": {
100 "type": "string",
101 "format": "html-selector",
102 "description": "The prefix to apply to generated selectors for the initial project.",
103 "minLength": 1,
104 "default": "app",
105 "alias": "p"
106 },
107 "style": {
108 "description": "The file extension or preprocessor to use for style files.",
109 "type": "string",
110 "enum": ["css", "scss", "sass", "less", "styl"],
111 "x-user-analytics": 5
112 },
113 "skipTests": {
114 "description": "When true, does not generate \"spec.ts\" test files for the new project. ",
115 "type": "boolean",
116 "default": false,
117 "alias": "S",
118 "x-user-analytics": 12
119 },
120 "createApplication": {
121 "description": "When true (the default), creates a new initial application project in the src folder of the new workspace. When false, creates an empty workspace with no initial app. You can then use the generate application command so that all apps are created in the projects folder.",
122 "type": "boolean",
123 "default": true
124 },
125 "minimal": {
126 "description": "When true, creates a workspace without any testing frameworks. (Use for learning purposes only.)",
127 "type": "boolean",
128 "default": false,
129 "x-user-analytics": 14
130 },
131 "strict": {
132 "description": "Creates a workspace with stricter type checking and build optimization options.",
133 "type": "boolean",
134 "default": false
135 },
136 "legacyBrowsers": {
137 "type": "boolean",
138 "description": "Add support for legacy browsers like Internet Explorer using differential loading.",
139 "default": false
140 },
141 "packageManager": {
142 "description": "The package manager used to install dependencies.",
143 "type": "string",
144 "enum": ["npm", "yarn", "pnpm", "cnpm"]
145 }
146 },
147 "required": ["name", "version"]
148}