| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- export interface Schema {
- $schema?: string;
- cli?: CliOptions;
- /**
- * Default project name used in commands.
- */
- defaultProject?: string;
- /**
- * Path where new projects will be created.
- */
- newProjectRoot?: string;
- projects?: Projects;
- schematics?: SchematicOptions;
- version: number;
- }
- export interface CliOptions {
- /**
- * Share anonymous usage data with the Angular Team at Google.
- */
- analytics?: boolean;
- /**
- * The default schematics collection to use.
- */
- defaultCollection?: string;
- /**
- * Specify which package manager tool to use.
- */
- packageManager?: PackageManager;
- /**
- * Control CLI specific console warnings
- */
- warnings?: Warnings;
- }
- /**
- * Specify which package manager tool to use.
- */
- export declare enum PackageManager {
- Cnpm = "cnpm",
- Npm = "npm",
- Pnpm = "pnpm",
- Yarn = "yarn"
- }
- /**
- * Control CLI specific console warnings
- */
- export interface Warnings {
- /**
- * Show a warning when the TypeScript version is incompatible.
- */
- typescriptMismatch?: boolean;
- /**
- * Show a warning when the global version is newer than the local one.
- */
- versionMismatch?: boolean;
- }
- export interface Projects {
- }
- export interface SchematicOptions {
- "@schematics/angular:class"?: SchematicsAngularClass;
- "@schematics/angular:component"?: SchematicsAngularComponent;
- "@schematics/angular:directive"?: SchematicsAngularDirective;
- "@schematics/angular:module"?: SchematicsAngularModule;
- "@schematics/angular:pipe"?: SchematicsAngularPipe;
- "@schematics/angular:service"?: SchematicsAngularService;
- }
- export interface SchematicsAngularClass {
- /**
- * When true, does not create test files.
- */
- skipTests?: boolean;
- /**
- * Specifies if a spec file is generated.
- */
- spec?: boolean;
- }
- export interface SchematicsAngularComponent {
- /**
- * Specifies the change detection strategy.
- */
- changeDetection?: ChangeDetection;
- /**
- * Specifies if the component is an entry component of declaring module.
- */
- entryComponent?: boolean;
- /**
- * Specifies if declaring module exports the component.
- */
- export?: boolean;
- /**
- * Flag to indicate if a directory is created.
- */
- flat?: boolean;
- /**
- * Specifies if the style will be in the ts file.
- */
- inlineStyle?: boolean;
- /**
- * Specifies if the template will be in the ts file.
- */
- inlineTemplate?: boolean;
- /**
- * Allows specification of the declaring module.
- */
- module?: string;
- /**
- * The prefix to apply to generated selectors.
- */
- prefix?: string;
- /**
- * The selector to use for the component.
- */
- selector?: string;
- /**
- * Flag to skip the module import.
- */
- skipImport?: boolean;
- /**
- * Specifies if a spec file is generated.
- */
- spec?: boolean;
- /**
- * The file extension or preprocessor to use for style files.
- */
- style?: Style;
- /**
- * The file extension to be used for style files.
- */
- styleext?: string;
- /**
- * Specifies the view encapsulation strategy.
- */
- viewEncapsulation?: ViewEncapsulation;
- }
- /**
- * Specifies the change detection strategy.
- */
- export declare enum ChangeDetection {
- Default = "Default",
- OnPush = "OnPush"
- }
- /**
- * The file extension or preprocessor to use for style files.
- */
- export declare enum Style {
- Css = "css",
- Less = "less",
- Sass = "sass",
- Scss = "scss",
- Styl = "styl"
- }
- /**
- * Specifies the view encapsulation strategy.
- */
- export declare enum ViewEncapsulation {
- Emulated = "Emulated",
- Native = "Native",
- None = "None",
- ShadowDom = "ShadowDom"
- }
- export interface SchematicsAngularDirective {
- /**
- * Specifies if declaring module exports the directive.
- */
- export?: boolean;
- /**
- * Flag to indicate if a directory is created.
- */
- flat?: boolean;
- /**
- * Allows specification of the declaring module.
- */
- module?: string;
- /**
- * The prefix to apply to generated selectors.
- */
- prefix?: string;
- /**
- * The selector to use for the directive.
- */
- selector?: string;
- /**
- * Flag to skip the module import.
- */
- skipImport?: boolean;
- /**
- * When true, does not create test files.
- */
- skipTests?: boolean;
- /**
- * Specifies if a spec file is generated.
- */
- spec?: boolean;
- }
- export interface SchematicsAngularModule {
- /**
- * Flag to control whether the CommonModule is imported.
- */
- commonModule?: boolean;
- /**
- * Flag to indicate if a directory is created.
- */
- flat?: boolean;
- /**
- * Allows specification of the declaring module.
- */
- module?: string;
- /**
- * Generates a routing module.
- */
- routing?: boolean;
- /**
- * The scope for the generated routing.
- */
- routingScope?: RoutingScope;
- }
- /**
- * The scope for the generated routing.
- */
- export declare enum RoutingScope {
- Child = "Child",
- Root = "Root"
- }
- export interface SchematicsAngularPipe {
- /**
- * Specifies if declaring module exports the pipe.
- */
- export?: boolean;
- /**
- * Flag to indicate if a directory is created.
- */
- flat?: boolean;
- /**
- * Allows specification of the declaring module.
- */
- module?: string;
- /**
- * Allows for skipping the module import.
- */
- skipImport?: boolean;
- /**
- * When true, does not create test files.
- */
- skipTests?: boolean;
- /**
- * Specifies if a spec file is generated.
- */
- spec?: boolean;
- }
- export interface SchematicsAngularService {
- /**
- * Flag to indicate if a directory is created.
- */
- flat?: boolean;
- /**
- * When true, does not create test files.
- */
- skipTests?: boolean;
- /**
- * Specifies if a spec file is generated.
- */
- spec?: boolean;
- }
|