UNPKG

@o3r/components

Version:

This module contains component-related features (Component replacement, CMS compatibility, helpers, pipes, debugging developer tools...) It comes with an integrated ng builder to help you generate components compatible with Otter features (CMS integration

24 lines 991 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.registerDevtools = void 0; const tslib_1 = require("tslib"); const node_fs_1 = require("node:fs"); const path = tslib_1.__importStar(require("node:path")); const schematics_1 = require("@o3r/schematics"); const DEVTOOL_MODULE_NAME = 'ComponentsDevtoolsModule'; const DEVTOOL_SERVICE_NAME = 'ComponentsDevtoolsMessageService'; const PACKAGE_NAME = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', '..', 'package.json'), { encoding: 'utf8' })).name; /** * Register Devtools to the application * @param options */ const registerDevtools = (options) => { return (0, schematics_1.registerDevtoolsToApplication)({ moduleName: DEVTOOL_MODULE_NAME, packageName: PACKAGE_NAME, serviceName: DEVTOOL_SERVICE_NAME, projectName: options.projectName }); }; exports.registerDevtools = registerDevtools; //# sourceMappingURL=devtools-registration.js.map