UNPKG

@o3r/dynamic-content

Version:

This module provides a mechanism to retrieve media and data depending on the host or a server specific url.

26 lines 897 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ngAdd = void 0; const path = require("node:path"); const schematics_1 = require("@o3r/schematics"); const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); /** * Add Otter dynamic-content to an Angular Project * @param options */ function ngAddFn(options) { /* ng add rules */ return (tree) => { return (0, schematics_1.setupDependencies)({ projectName: options.projectName, dependencies: (0, schematics_1.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion) }); }; } /** * Add Otter dynamic-content to an Angular Project * @param options */ const ngAdd = (options) => (0, schematics_1.createOtterSchematic)(ngAddFn)(options); exports.ngAdd = ngAdd; //# sourceMappingURL=index.js.map