UNPKG

7.04 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-07/schema",
3 "title": "Dev Server Target",
4 "description": "Dev Server target options for Build Facade.",
5 "type": "object",
6 "properties": {
7 "browserTarget": {
8 "type": "string",
9 "description": "A browser builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
10 "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
11 },
12 "port": {
13 "type": "number",
14 "description": "Port to listen on.",
15 "default": 4200
16 },
17 "host": {
18 "type": "string",
19 "description": "Host to listen on.",
20 "default": "localhost"
21 },
22 "proxyConfig": {
23 "type": "string",
24 "description": "Proxy configuration file. For more information, see https://angular.io/guide/build#proxying-to-a-backend-server."
25 },
26 "ssl": {
27 "type": "boolean",
28 "description": "Serve using HTTPS.",
29 "default": false
30 },
31 "sslKey": {
32 "type": "string",
33 "description": "SSL key to use for serving HTTPS."
34 },
35 "sslCert": {
36 "type": "string",
37 "description": "SSL certificate to use for serving HTTPS."
38 },
39 "headers": {
40 "type": "object",
41 "description": "Custom HTTP headers to be added to all responses.",
42 "propertyNames": {
43 "pattern": "^[-_A-Za-z0-9]+$"
44 },
45 "additionalProperties": {
46 "type": "string"
47 }
48 },
49 "open": {
50 "type": "boolean",
51 "description": "Opens the url in default browser.",
52 "default": false,
53 "alias": "o"
54 },
55 "verbose": {
56 "type": "boolean",
57 "description": "Adds more details to output logging."
58 },
59 "liveReload": {
60 "type": "boolean",
61 "description": "Whether to reload the page on change, using live-reload.",
62 "default": true
63 },
64 "publicHost": {
65 "type": "string",
66 "description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies."
67 },
68 "allowedHosts": {
69 "type": "array",
70 "description": "List of hosts that are allowed to access the dev server.",
71 "default": [],
72 "items": {
73 "type": "string"
74 }
75 },
76 "servePath": {
77 "type": "string",
78 "description": "The pathname where the app will be served."
79 },
80 "disableHostCheck": {
81 "type": "boolean",
82 "description": "Don't verify connected clients are part of allowed hosts.",
83 "default": false
84 },
85 "hmr": {
86 "type": "boolean",
87 "description": "Enable hot module replacement.",
88 "default": false
89 },
90 "watch": {
91 "type": "boolean",
92 "description": "Rebuild on change.",
93 "default": true
94 },
95 "hmrWarning": {
96 "type": "boolean",
97 "description": "Show a warning when the --hmr option is enabled.",
98 "default": true,
99 "x-deprecated": "No longer has an effect."
100 },
101 "servePathDefaultWarning": {
102 "type": "boolean",
103 "description": "Show a warning when deploy-url/base-href use unsupported serve path values.",
104 "default": true,
105 "x-deprecated": "No longer has an effect."
106 },
107 "optimization": {
108 "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, tree-shaking and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
109 "x-user-analytics": 16,
110 "oneOf": [
111 {
112 "type": "object",
113 "properties": {
114 "scripts": {
115 "type": "boolean",
116 "description": "Enables optimization of the scripts output.",
117 "default": true
118 },
119 "styles": {
120 "type": "boolean",
121 "description": "Enables optimization of the styles output.",
122 "default": true
123 }
124 },
125 "additionalProperties": false
126 },
127 {
128 "type": "boolean"
129 }
130 ],
131 "x-deprecated": "Use the \"optimization\" option in the browser builder instead."
132 },
133 "aot": {
134 "type": "boolean",
135 "description": "Build using Ahead of Time compilation.",
136 "x-user-analytics": 13,
137 "x-deprecated": "Use the \"aot\" option in the browser builder instead."
138 },
139 "sourceMap": {
140 "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
141 "oneOf": [
142 {
143 "type": "object",
144 "properties": {
145 "scripts": {
146 "type": "boolean",
147 "description": "Output source maps for all scripts.",
148 "default": true
149 },
150 "styles": {
151 "type": "boolean",
152 "description": "Output source maps for all styles.",
153 "default": true
154 },
155 "hidden": {
156 "type": "boolean",
157 "description": "Output source maps used for error reporting tools.",
158 "default": false
159 },
160 "vendor": {
161 "type": "boolean",
162 "description": "Resolve vendor packages source maps.",
163 "default": false
164 }
165 },
166 "additionalProperties": false
167 },
168 {
169 "type": "boolean"
170 }
171 ],
172 "x-deprecated": "Use the \"sourceMap\" option in the browser builder instead."
173 },
174 "vendorChunk": {
175 "type": "boolean",
176 "description": "Generate a seperate bundle containing only vendor libraries. This option should only used for development.",
177 "x-deprecated": "Use the \"vendorChunk\" option in the browser builder instead."
178 },
179 "commonChunk": {
180 "type": "boolean",
181 "description": "Generate a seperate bundle containing code used across multiple bundles.",
182 "x-deprecated": "Use the \"commonChunk\" option in the browser builder instead."
183 },
184 "baseHref": {
185 "type": "string",
186 "description": "Base url for the application being built.",
187 "x-deprecated": "Use the \"baseHref\" option in the browser builder instead."
188 },
189 "deployUrl": {
190 "type": "string",
191 "description": "URL where files will be deployed.",
192 "x-deprecated": "Use the \"deployUrl\" option in the browser builder instead."
193 },
194 "progress": {
195 "type": "boolean",
196 "description": "Log progress to the console while building.",
197 "x-deprecated": "Use the \"progress\" option in the browser builder instead."
198 },
199 "poll": {
200 "type": "number",
201 "description": "Enable and define the file watching poll time period in milliseconds."
202 }
203 },
204 "additionalProperties": false,
205 "required": ["browserTarget"]
206}