UNPKG

@taiga-ui/cdk

Version:

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

30 lines (29 loc) 775 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createAngularJson = void 0; const ng_morph_1 = require("ng-morph"); function createAngularJson({ stylesExist = false, root = '', } = {}) { (0, ng_morph_1.createSourceFile)('angular.json', ` { "version": 1, "projects": { "demo": { "root": "${root}", "architect": { "build": { "options": { "main": "test/main.ts", ${stylesExist ? `"styles": [ "node_modules/@taiga-ui/core/styles/taiga-ui-theme.less", "some.style" ] ` : ''}} } } } } }`, { overwrite: true }); } exports.createAngularJson = createAngularJson;