@o3r/schematics
Version:
Schematics module of the Otter framework
17 lines • 1.13 kB
TypeScript
import type { Rule } from '@angular-devkit/schematics';
import type { PackageJson } from 'type-fest';
import type { SchematicOptionObject } from '../../interfaces/index';
/**
* Register the given package in the Angular CLI schematics
* @param packageJson PackageJson of the project containing the collection to add to the project
* @param angularJsonFile Path to the Angular.json file. Will use the workspace root's angular.json if not specified
*/
export declare function registerPackageCollectionSchematics(packageJson: PackageJson, angularJsonFile?: string): Rule;
/**
* Setup schematics default params in angular.json and per project
* @param schematicsDefaultParams default params to setup by schematic
* @param projectName The name of the project on which to add the schematics
* @param overrideValue Define if the given value should override the one already defined in the workspace
*/
export declare function setupSchematicsParamsForProject(schematicsDefaultParams: Record<string, SchematicOptionObject>, projectName?: string, overrideValue?: boolean): Rule;
//# sourceMappingURL=schematics-register.d.ts.map