UNPKG

4.33 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-07/schema",
3 "$id": "SchematicsAngularApp",
4 "title": "Angular Application Options Schema",
5 "type": "object",
6 "description": "Generates a new basic application definition in the \"projects\" subfolder of the workspace.",
7 "additionalProperties": false,
8 "properties": {
9 "projectRoot": {
10 "description": "The root directory of the new application.",
11 "type": "string"
12 },
13 "name": {
14 "description": "The name of the new application.",
15 "type": "string",
16 "pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
17 "$default": {
18 "$source": "argv",
19 "index": 0
20 },
21 "x-prompt": "What name would you like to use for the application?"
22 },
23 "inlineStyle": {
24 "description": "Include styles inline in the root component.ts file. Only CSS styles can be included inline. Default is false, meaning that an external styles file is created and referenced in the root component.ts file.",
25 "type": "boolean",
26 "alias": "s",
27 "x-user-analytics": "ep.ng_inline_style"
28 },
29 "inlineTemplate": {
30 "description": "Include template inline in the root component.ts file. Default is false, meaning that an external template file is created and referenced in the root component.ts file. ",
31 "type": "boolean",
32 "alias": "t",
33 "x-user-analytics": "ep.ng_inline_template"
34 },
35 "viewEncapsulation": {
36 "description": "The view encapsulation strategy to use in the new application.",
37 "enum": ["Emulated", "None", "ShadowDom"],
38 "type": "string"
39 },
40 "routing": {
41 "type": "boolean",
42 "description": "Creates an application with routing enabled.",
43 "default": true,
44 "x-user-analytics": "ep.ng_routing"
45 },
46 "prefix": {
47 "type": "string",
48 "format": "html-selector",
49 "description": "A prefix to apply to generated selectors.",
50 "default": "app",
51 "alias": "p"
52 },
53 "style": {
54 "description": "The file extension or preprocessor to use for style files.",
55 "type": "string",
56 "default": "css",
57 "enum": ["css", "scss", "sass", "less"],
58 "x-prompt": {
59 "message": "Which stylesheet format would you like to use?",
60 "type": "list",
61 "items": [
62 { "value": "css", "label": "CSS" },
63 {
64 "value": "scss",
65 "label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]"
66 },
67 {
68 "value": "sass",
69 "label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]"
70 },
71 {
72 "value": "less",
73 "label": "Less [ http://lesscss.org ]"
74 }
75 ]
76 },
77 "x-user-analytics": "ep.ng_style"
78 },
79 "skipTests": {
80 "description": "Do not create \"spec.ts\" test files for the application.",
81 "type": "boolean",
82 "default": false,
83 "alias": "S"
84 },
85 "skipPackageJson": {
86 "type": "boolean",
87 "default": false,
88 "description": "Do not add dependencies to the \"package.json\" file."
89 },
90 "minimal": {
91 "description": "Create a bare-bones project without any testing frameworks. (Use for learning purposes only.)",
92 "type": "boolean",
93 "default": false
94 },
95 "skipInstall": {
96 "description": "Skip installing dependency packages.",
97 "type": "boolean",
98 "default": false
99 },
100 "strict": {
101 "description": "Creates an application with stricter bundle budgets settings.",
102 "type": "boolean",
103 "default": true
104 },
105 "standalone": {
106 "description": "Creates an application based upon the standalone API, without NgModules.",
107 "type": "boolean",
108 "default": true,
109 "x-user-analytics": "ep.ng_standalone"
110 },
111 "ssr": {
112 "description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
113 "x-prompt": "Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)?",
114 "type": "boolean",
115 "default": false,
116 "x-user-analytics": "ep.ng_ssr"
117 }
118 },
119 "required": ["name"]
120}