@baloise/ds-devkit 19.7.0 → 19.7.1-nightly.20250918
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baloise/ds-devkit",
|
|
3
|
-
"version": "19.7.
|
|
3
|
+
"version": "19.7.1-nightly.20250918",
|
|
4
4
|
"description": "The Baloise Design-System is an open source project for styling awesome web applications that follow the Baloise corporate styling guidelines.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -5,16 +5,19 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
5
5
|
const workspace_1 = require("../utils/workspace");
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
7
|
const updateAppComponent = (host) => {
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
8
|
+
const newAngularApp = host.exists(`src/app/app.html`);
|
|
9
|
+
const appTemplatePath = newAngularApp ? `src/app/app.html` : `src/app/app.component.html`;
|
|
10
|
+
const appComponentPath = newAngularApp ? `src/app/app.ts` : `src/app/app.component.ts`;
|
|
11
|
+
const appStylesPath = newAngularApp ? `src/app/app.css` : `src/app/app.component.css`;
|
|
12
|
+
const appStylesSassPath = newAngularApp ? `src/app/app.scss` : `src/app/app.component.scss`;
|
|
12
13
|
const isInlineTemplate = !host.exists(appTemplatePath);
|
|
13
14
|
const prefix = (0, workspace_1.getPrefix)(host);
|
|
14
15
|
const hasCssStyles = host.exists(appStylesPath);
|
|
15
16
|
const hasSassStyles = host.exists(appStylesSassPath);
|
|
16
17
|
const hasStyles = hasCssStyles || hasSassStyles;
|
|
17
|
-
const styleTemplate = hasStyles
|
|
18
|
+
const styleTemplate = hasStyles
|
|
19
|
+
? `styleUrl: './app.${newAngularApp ? '' : 'component.'}${hasCssStyles ? 'css' : 'scss'}',`
|
|
20
|
+
: '';
|
|
18
21
|
const appComponentBuffer = host.read(appComponentPath);
|
|
19
22
|
if (appComponentBuffer) {
|
|
20
23
|
const appComponentContent = appComponentBuffer.toString();
|
|
@@ -58,7 +61,7 @@ import { BalLayoutBundle, BalHeading, BalButton } from '@baloise/ds-angular'
|
|
|
58
61
|
standalone: true,${onPushTemplate}
|
|
59
62
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
60
63
|
imports: [CommonModule, BalLayoutBundle, BalHeading, BalButton],
|
|
61
|
-
templateUrl: './app
|
|
64
|
+
templateUrl: './app${newAngularApp ? '' : 'component.'}html',
|
|
62
65
|
${styleTemplate}
|
|
63
66
|
})
|
|
64
67
|
export class AppComponent {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.get.js","sourceRoot":"","sources":["app.get.ts"],"names":[],"mappings":";;;AAAA,2DAAsE;AACtE,kDAA8C;AAE9C,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAC,IAAU,EAAE,EAAE;IAC/C,MAAM,eAAe,GAAG,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"app.get.js","sourceRoot":"","sources":["app.get.ts"],"names":[],"mappings":";;;AAAA,2DAAsE;AACtE,kDAA8C;AAE9C,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAC,IAAU,EAAE,EAAE;IAC/C,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAErD,MAAM,eAAe,GAAG,aAAa,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,4BAA4B,CAAA;IACzF,MAAM,gBAAgB,GAAG,aAAa,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,0BAA0B,CAAA;IACtF,MAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,2BAA2B,CAAA;IACrF,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,kBAAkB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