@abp/ng.schematics 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/README.md +3 -3
  2. package/collection.json +29 -29
  3. package/commands/api/files-enum/proxy/__namespace@dir__/__name@kebab__.enum.ts.template +8 -8
  4. package/commands/api/files-model/proxy/__namespace@dir__/models.ts.template +9 -9
  5. package/commands/api/files-service/proxy/__namespace@dir__/__name@kebab__.service.ts.template +25 -25
  6. package/commands/api/index.d.ts +2 -2
  7. package/commands/api/index.js +112 -112
  8. package/commands/api/schema.json +45 -45
  9. package/commands/proxy-add/index.d.ts +2 -2
  10. package/commands/proxy-add/index.js +41 -41
  11. package/commands/proxy-add/schema.json +45 -45
  12. package/commands/proxy-index/index.d.ts +4 -4
  13. package/commands/proxy-index/index.js +14 -14
  14. package/commands/proxy-index/schema.json +18 -18
  15. package/commands/proxy-refresh/index.d.ts +3 -3
  16. package/commands/proxy-refresh/index.js +27 -27
  17. package/commands/proxy-refresh/schema.json +45 -45
  18. package/commands/proxy-remove/index.d.ts +3 -3
  19. package/commands/proxy-remove/index.js +33 -33
  20. package/commands/proxy-remove/schema.json +45 -45
  21. package/constants/api.d.ts +1 -1
  22. package/constants/api.js +4 -4
  23. package/constants/index.d.ts +4 -4
  24. package/constants/index.js +16 -16
  25. package/constants/proxy.d.ts +4 -4
  26. package/constants/proxy.js +24 -24
  27. package/constants/system-types.d.ts +1 -1
  28. package/constants/system-types.js +27 -27
  29. package/constants/volo.d.ts +1 -1
  30. package/constants/volo.js +4 -4
  31. package/enums/binding-source-id.d.ts +6 -6
  32. package/enums/binding-source-id.js +10 -10
  33. package/enums/exception.d.ts +16 -16
  34. package/enums/exception.js +2 -2
  35. package/enums/import-keyword.d.ts +4 -4
  36. package/enums/import-keyword.js +8 -8
  37. package/enums/index.d.ts +4 -4
  38. package/enums/index.js +16 -16
  39. package/enums/method-modifier.d.ts +6 -6
  40. package/enums/method-modifier.js +10 -10
  41. package/index.d.ts +1 -1
  42. package/index.js +2 -2
  43. package/models/api-definition.d.ts +72 -72
  44. package/models/api-definition.js +2 -2
  45. package/models/generate-proxy-schema.d.ts +18 -18
  46. package/models/generate-proxy-schema.js +2 -2
  47. package/models/import.d.ts +11 -11
  48. package/models/import.js +13 -13
  49. package/models/index.d.ts +10 -10
  50. package/models/index.js +22 -22
  51. package/models/method.d.ts +31 -31
  52. package/models/method.js +61 -61
  53. package/models/model.d.ts +48 -48
  54. package/models/model.js +71 -71
  55. package/models/project.d.ts +5 -5
  56. package/models/project.js +2 -2
  57. package/models/proxy-config.d.ts +4 -4
  58. package/models/proxy-config.js +2 -2
  59. package/models/service.d.ts +21 -21
  60. package/models/service.js +11 -11
  61. package/models/tree.d.ts +1 -1
  62. package/models/tree.js +2 -2
  63. package/models/util.d.ts +7 -7
  64. package/models/util.js +2 -2
  65. package/package.json +1 -1
  66. package/test-setup.d.ts +1 -1
  67. package/test-setup.js +3 -3
  68. package/utils/angular/ast-utils.d.ts +115 -115
  69. package/utils/angular/ast-utils.js +598 -598
  70. package/utils/angular/change.d.ts +66 -66
  71. package/utils/angular/change.js +96 -96
  72. package/utils/angular/config.d.ts +455 -455
  73. package/utils/angular/config.js +70 -70
  74. package/utils/angular/dependencies.d.ts +23 -23
  75. package/utils/angular/dependencies.js +58 -58
  76. package/utils/angular/find-module.d.ts +35 -35
  77. package/utils/angular/find-module.js +105 -105
  78. package/utils/angular/index.d.ts +17 -17
  79. package/utils/angular/index.js +29 -29
  80. package/utils/angular/json-file.d.ts +23 -23
  81. package/utils/angular/json-file.js +61 -61
  82. package/utils/angular/json-utils.d.ts +14 -14
  83. package/utils/angular/json-utils.js +158 -158
  84. package/utils/angular/latest-versions.d.ts +18 -18
  85. package/utils/angular/latest-versions.js +26 -26
  86. package/utils/angular/lint-fix.d.ts +9 -9
  87. package/utils/angular/lint-fix.js +41 -41
  88. package/utils/angular/ng-ast-utils.d.ts +5 -5
  89. package/utils/angular/ng-ast-utils.js +75 -75
  90. package/utils/angular/parse-name.d.ts +13 -13
  91. package/utils/angular/parse-name.js +21 -21
  92. package/utils/angular/paths.d.ts +8 -8
  93. package/utils/angular/paths.js +21 -21
  94. package/utils/angular/project-targets.d.ts +9 -9
  95. package/utils/angular/project-targets.js +15 -15
  96. package/utils/angular/tsconfig.d.ts +16 -16
  97. package/utils/angular/tsconfig.js +62 -62
  98. package/utils/angular/validation.d.ts +4 -4
  99. package/utils/angular/validation.js +73 -73
  100. package/utils/angular/workspace-models.d.ts +159 -159
  101. package/utils/angular/workspace-models.js +29 -29
  102. package/utils/angular/workspace.d.ts +18 -18
  103. package/utils/angular/workspace.js +75 -75
  104. package/utils/api.d.ts +2 -2
  105. package/utils/api.js +8 -8
  106. package/utils/ast.d.ts +4 -4
  107. package/utils/ast.js +23 -23
  108. package/utils/barrel.d.ts +4 -4
  109. package/utils/barrel.js +92 -92
  110. package/utils/common.d.ts +6 -6
  111. package/utils/common.js +33 -33
  112. package/utils/enum.d.ts +18 -18
  113. package/utils/enum.js +40 -40
  114. package/utils/file.d.ts +2 -2
  115. package/utils/file.js +9 -9
  116. package/utils/generics.d.ts +24 -24
  117. package/utils/generics.js +87 -87
  118. package/utils/import.d.ts +3 -3
  119. package/utils/import.js +11 -11
  120. package/utils/index.d.ts +19 -19
  121. package/utils/index.js +31 -31
  122. package/utils/model.d.ts +11 -11
  123. package/utils/model.js +141 -141
  124. package/utils/namespace.d.ts +1 -1
  125. package/utils/namespace.js +18 -18
  126. package/utils/path.d.ts +2 -2
  127. package/utils/path.js +36 -36
  128. package/utils/rule.d.ts +4 -4
  129. package/utils/rule.js +27 -27
  130. package/utils/service.d.ts +6 -6
  131. package/utils/service.js +82 -82
  132. package/utils/source.d.ts +13 -13
  133. package/utils/source.js +162 -162
  134. package/utils/text.d.ts +9 -9
  135. package/utils/text.js +46 -46
  136. package/utils/tree.d.ts +13 -13
  137. package/utils/tree.js +56 -56
  138. package/utils/type.d.ts +12 -12
  139. package/utils/type.js +102 -102
  140. package/utils/workspace.d.ts +8 -8
  141. package/utils/workspace.js +66 -66
@@ -1,455 +1,455 @@
1
- import { Rule, Tree } from '@angular-devkit/schematics';
2
- import { ProjectType, WorkspaceProject, WorkspaceSchema } from './workspace-models';
3
- export interface AppConfig {
4
- /**
5
- * Name of the app.
6
- */
7
- name?: string;
8
- /**
9
- * Directory where app files are placed.
10
- */
11
- appRoot?: string;
12
- /**
13
- * The root directory of the app.
14
- */
15
- root?: string;
16
- /**
17
- * The output directory for build results.
18
- */
19
- outDir?: string;
20
- /**
21
- * List of application assets.
22
- */
23
- assets?: (string | {
24
- /**
25
- * The pattern to match.
26
- */
27
- glob?: string;
28
- /**
29
- * The dir to search within.
30
- */
31
- input?: string;
32
- /**
33
- * The output path (relative to the outDir).
34
- */
35
- output?: string;
36
- })[];
37
- /**
38
- * URL where files will be deployed.
39
- */
40
- deployUrl?: string;
41
- /**
42
- * Base url for the application being built.
43
- */
44
- baseHref?: string;
45
- /**
46
- * The runtime platform of the app.
47
- */
48
- platform?: 'browser' | 'server';
49
- /**
50
- * The name of the start HTML file.
51
- */
52
- index?: string;
53
- /**
54
- * The name of the main entry-point file.
55
- */
56
- main?: string;
57
- /**
58
- * The name of the polyfills file.
59
- */
60
- polyfills?: string;
61
- /**
62
- * The name of the test entry-point file.
63
- */
64
- test?: string;
65
- /**
66
- * The name of the TypeScript configuration file.
67
- */
68
- tsconfig?: string;
69
- /**
70
- * The name of the TypeScript configuration file for unit tests.
71
- */
72
- testTsconfig?: string;
73
- /**
74
- * The prefix to apply to generated selectors.
75
- */
76
- prefix?: string;
77
- /**
78
- * Experimental support for a service worker from @angular/service-worker.
79
- */
80
- serviceWorker?: boolean;
81
- /**
82
- * Global styles to be included in the build.
83
- */
84
- styles?: (string | {
85
- input?: string;
86
- [name: string]: any;
87
- })[];
88
- /**
89
- * Options to pass to style preprocessors
90
- */
91
- stylePreprocessorOptions?: {
92
- /**
93
- * Paths to include. Paths will be resolved to project root.
94
- */
95
- includePaths?: string[];
96
- };
97
- /**
98
- * Global scripts to be included in the build.
99
- */
100
- scripts?: (string | {
101
- input: string;
102
- [name: string]: any;
103
- })[];
104
- /**
105
- * Source file for environment config.
106
- */
107
- environmentSource?: string;
108
- /**
109
- * Name and corresponding file for environment config.
110
- */
111
- environments?: {
112
- [name: string]: any;
113
- };
114
- appShell?: {
115
- app: string;
116
- route: string;
117
- };
118
- budgets?: {
119
- /**
120
- * The type of budget
121
- */
122
- type?: 'bundle' | 'initial' | 'allScript' | 'all' | 'anyScript' | 'any' | 'anyComponentStyle';
123
- /**
124
- * The name of the bundle
125
- */
126
- name?: string;
127
- /**
128
- * The baseline size for comparison.
129
- */
130
- baseline?: string;
131
- /**
132
- * The maximum threshold for warning relative to the baseline.
133
- */
134
- maximumWarning?: string;
135
- /**
136
- * The maximum threshold for error relative to the baseline.
137
- */
138
- maximumError?: string;
139
- /**
140
- * The minimum threshold for warning relative to the baseline.
141
- */
142
- minimumWarning?: string;
143
- /**
144
- * The minimum threshold for error relative to the baseline.
145
- */
146
- minimumError?: string;
147
- /**
148
- * The threshold for warning relative to the baseline (min & max).
149
- */
150
- warning?: string;
151
- /**
152
- * The threshold for error relative to the baseline (min & max).
153
- */
154
- error?: string;
155
- }[];
156
- }
157
- export interface CliConfig {
158
- $schema?: string;
159
- /**
160
- * The global configuration of the project.
161
- */
162
- project?: {
163
- /**
164
- * The name of the project.
165
- */
166
- name?: string;
167
- /**
168
- * Whether or not this project was ejected.
169
- */
170
- ejected?: boolean;
171
- };
172
- /**
173
- * Properties of the different applications in this project.
174
- */
175
- apps?: AppConfig[];
176
- /**
177
- * Configuration for end-to-end tests.
178
- */
179
- e2e?: {
180
- protractor?: {
181
- /**
182
- * Path to the config file.
183
- */
184
- config?: string;
185
- };
186
- };
187
- /**
188
- * Properties to be passed to TSLint.
189
- */
190
- lint?: {
191
- /**
192
- * File glob(s) to lint.
193
- */
194
- files?: string | string[];
195
- /**
196
- * Location of the tsconfig.json project file.
197
- * Will also use as files to lint if 'files' property not present.
198
- */
199
- project: string;
200
- /**
201
- * Location of the tslint.json configuration.
202
- */
203
- tslintConfig?: string;
204
- /**
205
- * File glob(s) to ignore.
206
- */
207
- exclude?: string | string[];
208
- }[];
209
- /**
210
- * Configuration for unit tests.
211
- */
212
- test?: {
213
- karma?: {
214
- /**
215
- * Path to the karma config file.
216
- */
217
- config?: string;
218
- };
219
- codeCoverage?: {
220
- /**
221
- * Globs to exclude from code coverage.
222
- */
223
- exclude?: string[];
224
- };
225
- };
226
- /**
227
- * Specify the default values for generating.
228
- */
229
- defaults?: {
230
- /**
231
- * The file extension to be used for style files.
232
- */
233
- styleExt?: string;
234
- /**
235
- * How often to check for file updates.
236
- */
237
- poll?: number;
238
- /**
239
- * Use lint to fix files after generation
240
- */
241
- lintFix?: boolean;
242
- /**
243
- * Options for generating a class.
244
- */
245
- class?: {
246
- /**
247
- * Specifies if a spec file is generated.
248
- */
249
- spec?: boolean;
250
- };
251
- /**
252
- * Options for generating a component.
253
- */
254
- component?: {
255
- /**
256
- * Flag to indicate if a directory is created.
257
- */
258
- flat?: boolean;
259
- /**
260
- * Specifies if a spec file is generated.
261
- */
262
- spec?: boolean;
263
- /**
264
- * Specifies if the style will be in the ts file.
265
- */
266
- inlineStyle?: boolean;
267
- /**
268
- * Specifies if the template will be in the ts file.
269
- */
270
- inlineTemplate?: boolean;
271
- /**
272
- * Specifies the view encapsulation strategy.
273
- */
274
- viewEncapsulation?: 'Emulated' | 'Native' | 'None';
275
- /**
276
- * Specifies the change detection strategy.
277
- */
278
- changeDetection?: 'Default' | 'OnPush';
279
- };
280
- /**
281
- * Options for generating a directive.
282
- */
283
- directive?: {
284
- /**
285
- * Flag to indicate if a directory is created.
286
- */
287
- flat?: boolean;
288
- /**
289
- * Specifies if a spec file is generated.
290
- */
291
- spec?: boolean;
292
- };
293
- /**
294
- * Options for generating a guard.
295
- */
296
- guard?: {
297
- /**
298
- * Flag to indicate if a directory is created.
299
- */
300
- flat?: boolean;
301
- /**
302
- * Specifies if a spec file is generated.
303
- */
304
- spec?: boolean;
305
- };
306
- /**
307
- * Options for generating an interface.
308
- */
309
- interface?: {
310
- /**
311
- * Prefix to apply to interface names. (i.e. I)
312
- */
313
- prefix?: string;
314
- };
315
- /**
316
- * Options for generating a module.
317
- */
318
- module?: {
319
- /**
320
- * Flag to indicate if a directory is created.
321
- */
322
- flat?: boolean;
323
- /**
324
- * Specifies if a spec file is generated.
325
- */
326
- spec?: boolean;
327
- };
328
- /**
329
- * Options for generating a pipe.
330
- */
331
- pipe?: {
332
- /**
333
- * Flag to indicate if a directory is created.
334
- */
335
- flat?: boolean;
336
- /**
337
- * Specifies if a spec file is generated.
338
- */
339
- spec?: boolean;
340
- };
341
- /**
342
- * Options for generating a service.
343
- */
344
- service?: {
345
- /**
346
- * Flag to indicate if a directory is created.
347
- */
348
- flat?: boolean;
349
- /**
350
- * Specifies if a spec file is generated.
351
- */
352
- spec?: boolean;
353
- };
354
- /**
355
- * Properties to be passed to the build command.
356
- */
357
- build?: {
358
- /**
359
- * Output sourcemaps.
360
- */
361
- sourcemaps?: boolean;
362
- /**
363
- * Base url for the application being built.
364
- */
365
- baseHref?: string;
366
- /**
367
- * The ssl key used by the server.
368
- */
369
- progress?: boolean;
370
- /**
371
- * Enable and define the file watching poll time period (milliseconds).
372
- */
373
- poll?: number;
374
- /**
375
- * Delete output path before build.
376
- */
377
- deleteOutputPath?: boolean;
378
- /**
379
- * Do not use the real path when resolving modules.
380
- */
381
- preserveSymlinks?: boolean;
382
- /**
383
- * Show circular dependency warnings on builds.
384
- */
385
- showCircularDependencies?: boolean;
386
- /**
387
- * Use a separate bundle containing code used across multiple bundles.
388
- */
389
- commonChunk?: boolean;
390
- /**
391
- * Use file name for lazy loaded chunks.
392
- */
393
- namedChunks?: boolean;
394
- };
395
- /**
396
- * Properties to be passed to the serve command.
397
- */
398
- serve?: {
399
- /**
400
- * The port the application will be served on.
401
- */
402
- port?: number;
403
- /**
404
- * The host the application will be served on.
405
- */
406
- host?: string;
407
- /**
408
- * Enables ssl for the application.
409
- */
410
- ssl?: boolean;
411
- /**
412
- * The ssl key used by the server.
413
- */
414
- sslKey?: string;
415
- /**
416
- * The ssl certificate used by the server.
417
- */
418
- sslCert?: string;
419
- /**
420
- * Proxy configuration file.
421
- */
422
- proxyConfig?: string;
423
- };
424
- /**
425
- * Properties about schematics.
426
- */
427
- schematics?: {
428
- /**
429
- * The schematics collection to use.
430
- */
431
- collection?: string;
432
- /**
433
- * The new app schematic.
434
- */
435
- newApp?: string;
436
- };
437
- };
438
- /**
439
- * Specify which package manager tool to use.
440
- */
441
- packageManager?: 'npm' | 'cnpm' | 'yarn' | 'default';
442
- /**
443
- * Allow people to disable console warnings.
444
- */
445
- warnings?: {
446
- versionMismatch?: boolean;
447
- };
448
- }
449
- export declare function getWorkspacePath(host: Tree): string;
450
- export declare function getWorkspaceSchema(host: Tree): WorkspaceSchema;
451
- export declare function addProjectToWorkspace<TProjectType extends ProjectType = ProjectType.Application>(workspace: WorkspaceSchema, name: string, project: WorkspaceProject<TProjectType>): Rule;
452
- export declare function updateWorkspaceSchema(workspace: WorkspaceSchema): Rule;
453
- export declare const configPath = "/.angular-cli.json";
454
- export declare function getConfig(host: Tree): CliConfig;
455
- export declare function getAppFromConfig(config: CliConfig, appIndexOrName: string): AppConfig | null;
1
+ import { Rule, Tree } from '@angular-devkit/schematics';
2
+ import { ProjectType, WorkspaceProject, WorkspaceSchema } from './workspace-models';
3
+ export interface AppConfig {
4
+ /**
5
+ * Name of the app.
6
+ */
7
+ name?: string;
8
+ /**
9
+ * Directory where app files are placed.
10
+ */
11
+ appRoot?: string;
12
+ /**
13
+ * The root directory of the app.
14
+ */
15
+ root?: string;
16
+ /**
17
+ * The output directory for build results.
18
+ */
19
+ outDir?: string;
20
+ /**
21
+ * List of application assets.
22
+ */
23
+ assets?: (string | {
24
+ /**
25
+ * The pattern to match.
26
+ */
27
+ glob?: string;
28
+ /**
29
+ * The dir to search within.
30
+ */
31
+ input?: string;
32
+ /**
33
+ * The output path (relative to the outDir).
34
+ */
35
+ output?: string;
36
+ })[];
37
+ /**
38
+ * URL where files will be deployed.
39
+ */
40
+ deployUrl?: string;
41
+ /**
42
+ * Base url for the application being built.
43
+ */
44
+ baseHref?: string;
45
+ /**
46
+ * The runtime platform of the app.
47
+ */
48
+ platform?: 'browser' | 'server';
49
+ /**
50
+ * The name of the start HTML file.
51
+ */
52
+ index?: string;
53
+ /**
54
+ * The name of the main entry-point file.
55
+ */
56
+ main?: string;
57
+ /**
58
+ * The name of the polyfills file.
59
+ */
60
+ polyfills?: string;
61
+ /**
62
+ * The name of the test entry-point file.
63
+ */
64
+ test?: string;
65
+ /**
66
+ * The name of the TypeScript configuration file.
67
+ */
68
+ tsconfig?: string;
69
+ /**
70
+ * The name of the TypeScript configuration file for unit tests.
71
+ */
72
+ testTsconfig?: string;
73
+ /**
74
+ * The prefix to apply to generated selectors.
75
+ */
76
+ prefix?: string;
77
+ /**
78
+ * Experimental support for a service worker from @angular/service-worker.
79
+ */
80
+ serviceWorker?: boolean;
81
+ /**
82
+ * Global styles to be included in the build.
83
+ */
84
+ styles?: (string | {
85
+ input?: string;
86
+ [name: string]: any;
87
+ })[];
88
+ /**
89
+ * Options to pass to style preprocessors
90
+ */
91
+ stylePreprocessorOptions?: {
92
+ /**
93
+ * Paths to include. Paths will be resolved to project root.
94
+ */
95
+ includePaths?: string[];
96
+ };
97
+ /**
98
+ * Global scripts to be included in the build.
99
+ */
100
+ scripts?: (string | {
101
+ input: string;
102
+ [name: string]: any;
103
+ })[];
104
+ /**
105
+ * Source file for environment config.
106
+ */
107
+ environmentSource?: string;
108
+ /**
109
+ * Name and corresponding file for environment config.
110
+ */
111
+ environments?: {
112
+ [name: string]: any;
113
+ };
114
+ appShell?: {
115
+ app: string;
116
+ route: string;
117
+ };
118
+ budgets?: {
119
+ /**
120
+ * The type of budget
121
+ */
122
+ type?: 'bundle' | 'initial' | 'allScript' | 'all' | 'anyScript' | 'any' | 'anyComponentStyle';
123
+ /**
124
+ * The name of the bundle
125
+ */
126
+ name?: string;
127
+ /**
128
+ * The baseline size for comparison.
129
+ */
130
+ baseline?: string;
131
+ /**
132
+ * The maximum threshold for warning relative to the baseline.
133
+ */
134
+ maximumWarning?: string;
135
+ /**
136
+ * The maximum threshold for error relative to the baseline.
137
+ */
138
+ maximumError?: string;
139
+ /**
140
+ * The minimum threshold for warning relative to the baseline.
141
+ */
142
+ minimumWarning?: string;
143
+ /**
144
+ * The minimum threshold for error relative to the baseline.
145
+ */
146
+ minimumError?: string;
147
+ /**
148
+ * The threshold for warning relative to the baseline (min & max).
149
+ */
150
+ warning?: string;
151
+ /**
152
+ * The threshold for error relative to the baseline (min & max).
153
+ */
154
+ error?: string;
155
+ }[];
156
+ }
157
+ export interface CliConfig {
158
+ $schema?: string;
159
+ /**
160
+ * The global configuration of the project.
161
+ */
162
+ project?: {
163
+ /**
164
+ * The name of the project.
165
+ */
166
+ name?: string;
167
+ /**
168
+ * Whether or not this project was ejected.
169
+ */
170
+ ejected?: boolean;
171
+ };
172
+ /**
173
+ * Properties of the different applications in this project.
174
+ */
175
+ apps?: AppConfig[];
176
+ /**
177
+ * Configuration for end-to-end tests.
178
+ */
179
+ e2e?: {
180
+ protractor?: {
181
+ /**
182
+ * Path to the config file.
183
+ */
184
+ config?: string;
185
+ };
186
+ };
187
+ /**
188
+ * Properties to be passed to TSLint.
189
+ */
190
+ lint?: {
191
+ /**
192
+ * File glob(s) to lint.
193
+ */
194
+ files?: string | string[];
195
+ /**
196
+ * Location of the tsconfig.json project file.
197
+ * Will also use as files to lint if 'files' property not present.
198
+ */
199
+ project: string;
200
+ /**
201
+ * Location of the tslint.json configuration.
202
+ */
203
+ tslintConfig?: string;
204
+ /**
205
+ * File glob(s) to ignore.
206
+ */
207
+ exclude?: string | string[];
208
+ }[];
209
+ /**
210
+ * Configuration for unit tests.
211
+ */
212
+ test?: {
213
+ karma?: {
214
+ /**
215
+ * Path to the karma config file.
216
+ */
217
+ config?: string;
218
+ };
219
+ codeCoverage?: {
220
+ /**
221
+ * Globs to exclude from code coverage.
222
+ */
223
+ exclude?: string[];
224
+ };
225
+ };
226
+ /**
227
+ * Specify the default values for generating.
228
+ */
229
+ defaults?: {
230
+ /**
231
+ * The file extension to be used for style files.
232
+ */
233
+ styleExt?: string;
234
+ /**
235
+ * How often to check for file updates.
236
+ */
237
+ poll?: number;
238
+ /**
239
+ * Use lint to fix files after generation
240
+ */
241
+ lintFix?: boolean;
242
+ /**
243
+ * Options for generating a class.
244
+ */
245
+ class?: {
246
+ /**
247
+ * Specifies if a spec file is generated.
248
+ */
249
+ spec?: boolean;
250
+ };
251
+ /**
252
+ * Options for generating a component.
253
+ */
254
+ component?: {
255
+ /**
256
+ * Flag to indicate if a directory is created.
257
+ */
258
+ flat?: boolean;
259
+ /**
260
+ * Specifies if a spec file is generated.
261
+ */
262
+ spec?: boolean;
263
+ /**
264
+ * Specifies if the style will be in the ts file.
265
+ */
266
+ inlineStyle?: boolean;
267
+ /**
268
+ * Specifies if the template will be in the ts file.
269
+ */
270
+ inlineTemplate?: boolean;
271
+ /**
272
+ * Specifies the view encapsulation strategy.
273
+ */
274
+ viewEncapsulation?: 'Emulated' | 'Native' | 'None';
275
+ /**
276
+ * Specifies the change detection strategy.
277
+ */
278
+ changeDetection?: 'Default' | 'OnPush';
279
+ };
280
+ /**
281
+ * Options for generating a directive.
282
+ */
283
+ directive?: {
284
+ /**
285
+ * Flag to indicate if a directory is created.
286
+ */
287
+ flat?: boolean;
288
+ /**
289
+ * Specifies if a spec file is generated.
290
+ */
291
+ spec?: boolean;
292
+ };
293
+ /**
294
+ * Options for generating a guard.
295
+ */
296
+ guard?: {
297
+ /**
298
+ * Flag to indicate if a directory is created.
299
+ */
300
+ flat?: boolean;
301
+ /**
302
+ * Specifies if a spec file is generated.
303
+ */
304
+ spec?: boolean;
305
+ };
306
+ /**
307
+ * Options for generating an interface.
308
+ */
309
+ interface?: {
310
+ /**
311
+ * Prefix to apply to interface names. (i.e. I)
312
+ */
313
+ prefix?: string;
314
+ };
315
+ /**
316
+ * Options for generating a module.
317
+ */
318
+ module?: {
319
+ /**
320
+ * Flag to indicate if a directory is created.
321
+ */
322
+ flat?: boolean;
323
+ /**
324
+ * Specifies if a spec file is generated.
325
+ */
326
+ spec?: boolean;
327
+ };
328
+ /**
329
+ * Options for generating a pipe.
330
+ */
331
+ pipe?: {
332
+ /**
333
+ * Flag to indicate if a directory is created.
334
+ */
335
+ flat?: boolean;
336
+ /**
337
+ * Specifies if a spec file is generated.
338
+ */
339
+ spec?: boolean;
340
+ };
341
+ /**
342
+ * Options for generating a service.
343
+ */
344
+ service?: {
345
+ /**
346
+ * Flag to indicate if a directory is created.
347
+ */
348
+ flat?: boolean;
349
+ /**
350
+ * Specifies if a spec file is generated.
351
+ */
352
+ spec?: boolean;
353
+ };
354
+ /**
355
+ * Properties to be passed to the build command.
356
+ */
357
+ build?: {
358
+ /**
359
+ * Output sourcemaps.
360
+ */
361
+ sourcemaps?: boolean;
362
+ /**
363
+ * Base url for the application being built.
364
+ */
365
+ baseHref?: string;
366
+ /**
367
+ * The ssl key used by the server.
368
+ */
369
+ progress?: boolean;
370
+ /**
371
+ * Enable and define the file watching poll time period (milliseconds).
372
+ */
373
+ poll?: number;
374
+ /**
375
+ * Delete output path before build.
376
+ */
377
+ deleteOutputPath?: boolean;
378
+ /**
379
+ * Do not use the real path when resolving modules.
380
+ */
381
+ preserveSymlinks?: boolean;
382
+ /**
383
+ * Show circular dependency warnings on builds.
384
+ */
385
+ showCircularDependencies?: boolean;
386
+ /**
387
+ * Use a separate bundle containing code used across multiple bundles.
388
+ */
389
+ commonChunk?: boolean;
390
+ /**
391
+ * Use file name for lazy loaded chunks.
392
+ */
393
+ namedChunks?: boolean;
394
+ };
395
+ /**
396
+ * Properties to be passed to the serve command.
397
+ */
398
+ serve?: {
399
+ /**
400
+ * The port the application will be served on.
401
+ */
402
+ port?: number;
403
+ /**
404
+ * The host the application will be served on.
405
+ */
406
+ host?: string;
407
+ /**
408
+ * Enables ssl for the application.
409
+ */
410
+ ssl?: boolean;
411
+ /**
412
+ * The ssl key used by the server.
413
+ */
414
+ sslKey?: string;
415
+ /**
416
+ * The ssl certificate used by the server.
417
+ */
418
+ sslCert?: string;
419
+ /**
420
+ * Proxy configuration file.
421
+ */
422
+ proxyConfig?: string;
423
+ };
424
+ /**
425
+ * Properties about schematics.
426
+ */
427
+ schematics?: {
428
+ /**
429
+ * The schematics collection to use.
430
+ */
431
+ collection?: string;
432
+ /**
433
+ * The new app schematic.
434
+ */
435
+ newApp?: string;
436
+ };
437
+ };
438
+ /**
439
+ * Specify which package manager tool to use.
440
+ */
441
+ packageManager?: 'npm' | 'cnpm' | 'yarn' | 'default';
442
+ /**
443
+ * Allow people to disable console warnings.
444
+ */
445
+ warnings?: {
446
+ versionMismatch?: boolean;
447
+ };
448
+ }
449
+ export declare function getWorkspacePath(host: Tree): string;
450
+ export declare function getWorkspaceSchema(host: Tree): WorkspaceSchema;
451
+ export declare function addProjectToWorkspace<TProjectType extends ProjectType = ProjectType.Application>(workspace: WorkspaceSchema, name: string, project: WorkspaceProject<TProjectType>): Rule;
452
+ export declare function updateWorkspaceSchema(workspace: WorkspaceSchema): Rule;
453
+ export declare const configPath = "/.angular-cli.json";
454
+ export declare function getConfig(host: Tree): CliConfig;
455
+ export declare function getAppFromConfig(config: CliConfig, appIndexOrName: string): AppConfig | null;