UNPKG

@o3r/schematics

Version:

Schematics module of the Otter framework

38 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ngAdd = void 0; const path = require("node:path"); const public_api_1 = require("../../src/public_api"); /** * List of external dependencies to be added to the project as peer dependencies */ const dependenciesToInstall = []; /** * List of external dependencies to be added to the project as dev dependencies */ const devDependenciesToInstall = [ '@angular-devkit/architect', '@angular-devkit/core', '@angular-devkit/schematics', '@schematics/angular', 'globby', 'rxjs' ]; /** * Add Otter schematics to an Angular Project * @param options schematics options */ function ngAddFn(options) { const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); return (0, public_api_1.ngAddDependenciesRule)({ ...options, skipInstall: false }, packageJsonPath, { dependenciesToInstall, devDependenciesToInstall }); } /** * Add Otter schematics to an Angular Project * @param options */ const ngAdd = (options) => (0, public_api_1.createOtterSchematic)(ngAddFn)(options); exports.ngAdd = ngAdd; //# sourceMappingURL=index.js.map