UNPKG

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