1 | /**
|
2 | * @license
|
3 | * Copyright Google Inc. All Rights Reserved.
|
4 | *
|
5 | * Use of this source code is governed by an MIT-style license that can be
|
6 | * found in the LICENSE file at https://angular.io/license
|
7 | */
|
8 | export interface Schema {
|
9 | /**
|
10 | * The path to create the component.
|
11 | */
|
12 | path?: string;
|
13 | /**
|
14 | * The name of the project.
|
15 | */
|
16 | project?: string;
|
17 | /**
|
18 | * The name of the component.
|
19 | */
|
20 | name: string;
|
21 | /**
|
22 | * Specifies if the style will be in the ts file.
|
23 | */
|
24 | inlineStyle?: boolean;
|
25 | /**
|
26 | * Specifies if the template will be in the ts file.
|
27 | */
|
28 | inlineTemplate?: boolean;
|
29 | /**
|
30 | * Specifies the view encapsulation strategy.
|
31 | */
|
32 | viewEncapsulation?: 'Emulated' | 'Native' | 'None';
|
33 | /**
|
34 | * Specifies the change detection strategy.
|
35 | */
|
36 | changeDetection?: 'Default' | 'OnPush';
|
37 | /**
|
38 | * The prefix to apply to generated selectors.
|
39 | */
|
40 | prefix?: string;
|
41 | /**
|
42 | * The file extension to be used for style files.
|
43 | */
|
44 | styleext?: string;
|
45 | /**
|
46 | * Specifies if a spec file is generated.
|
47 | */
|
48 | spec?: boolean;
|
49 | /**
|
50 | * Flag to indicate if a dir is created.
|
51 | */
|
52 | flat?: boolean;
|
53 | /**
|
54 | * Flag to skip the module import.
|
55 | */
|
56 | skipImport?: boolean;
|
57 | /**
|
58 | * The selector to use for the component.
|
59 | */
|
60 | selector?: string;
|
61 | /**
|
62 | * Allows specification of the declaring module.
|
63 | */
|
64 | module?: string;
|
65 | /**
|
66 | * Specifies if declaring module exports the component.
|
67 | */
|
68 | export?: boolean;
|
69 | /**
|
70 | * Specifies if the component is an entry component of declaring module.
|
71 | */
|
72 | entryComponent?: boolean;
|
73 | /**
|
74 | * Specifies whether to apply lint fixes after generating the component.
|
75 | */
|
76 | lintFix?: boolean;
|
77 | }
|