UNPKG

@taiga-ui/cdk

Version:

Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance

19 lines 866 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.migrateStyles = migrateStyles; const ng_morph_1 = require("ng-morph"); const constants_1 = require("../../../../constants"); const add_comments_1 = require("./add-comments"); const migrate_imports_1 = require("./migrate-imports"); const ACTIONS = [ migrate_imports_1.migrateImports, add_comments_1.addStyleComments, (file) => file.replaceAll(/tui-slider-ticks-labels\([^)]*\)/g, 'tui-slider-ticks-labels()'), ]; function migrateStyles() { (0, ng_morph_1.getSourceFiles)([...constants_1.ALL_STYLE_FILES, ...constants_1.PROJECT_JSON_FILES]).forEach((sourceFile) => { sourceFile.replaceWithText(ACTIONS.reduce((content, action) => action(content), sourceFile.getFullText())); }); (0, ng_morph_1.saveActiveProject)(); } //# sourceMappingURL=index.js.map