UNPKG

@rxap/schematics-xml-parser

Version:

This package provides utilities for parsing XML templates within Angular Schematics. It includes functionality to locate templates in a file system, parse them using a specified DOMParser, and register custom elements for parsing. The package also offers

29 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModuleElement = void 0; const tslib_1 = require("tslib"); const xml_parser_1 = require("@rxap/xml-parser"); const schematics_1 = require("@angular-devkit/schematics"); const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph"); let ModuleElement = class ModuleElement { handleComponentModule({ sourceFile, project, options, }) { (0, schematics_ts_morph_1.AddNgModuleImport)(sourceFile, this.name, this.form); } toValue({ project, options, }) { return (0, schematics_1.noop)(); } }; exports.ModuleElement = ModuleElement; tslib_1.__decorate([ (0, xml_parser_1.ElementChildTextContent)(), (0, xml_parser_1.ElementRequired)(), tslib_1.__metadata("design:type", String) ], ModuleElement.prototype, "name", void 0); tslib_1.__decorate([ (0, xml_parser_1.ElementChildTextContent)(), tslib_1.__metadata("design:type", String) ], ModuleElement.prototype, "form", void 0); exports.ModuleElement = ModuleElement = tslib_1.__decorate([ (0, xml_parser_1.ElementDef)('module') ], ModuleElement); //# sourceMappingURL=module.element.js.map