@delon/cli
Version:
Schematics for ng-alain
51 lines (49 loc) • 1.11 kB
TypeScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export interface Schema {
/**
* The name of the module.
*/
name: string;
/**
* The path to create the module.
*/
path?: string;
/**
* The path of the source directory.
*/
sourceDir?: string;
/**
* The root of the application.
*/
appRoot?: string;
/**
* Generates a routing module.
*/
routing?: boolean;
/**
* The scope for the generated routing.
*/
routingScope?: ('Child' | 'Root');
/**
* Specifies if a spec file is generated.
*/
spec?: boolean;
/**
* Flag to indicate if a dir is created.
*/
flat?: boolean;
/**
* Flag to control whether the CommonModule is imported.
*/
commonModule?: boolean;
/**
* Allows specification of the declaring module.
*/
module?: string;
}