@ihk-gfi/lux-components-update 16.0.0 → 16.0.1
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.
|
@@ -6,6 +6,7 @@ const chalk = require("chalk");
|
|
|
6
6
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
7
7
|
const index_1 = require("../update-dependencies/index");
|
|
8
8
|
const index_2 = require("../updates/16.0.0/index");
|
|
9
|
+
const index_3 = require("../updates/16.0.1/index");
|
|
9
10
|
const files_1 = require("../utility/files");
|
|
10
11
|
const json_1 = require("../utility/json");
|
|
11
12
|
const logging_1 = require("../utility/logging");
|
|
@@ -75,6 +76,7 @@ function addLuxComponents(options) {
|
|
|
75
76
|
(0, json_1.updateJsonArray)('/angular.json', jsonPathAllowedCommonJS, 'pdfjs-dist'),
|
|
76
77
|
(0, json_1.updateJsonArray)('/angular.json', jsonPathAllowedCommonJS, 'dompurify'),
|
|
77
78
|
(0, files_1.deleteFile)(options, ((_a = options.path) !== null && _a !== void 0 ? _a : '') + '/package-lock.json'),
|
|
79
|
+
(0, index_3.update160001)(options, false),
|
|
78
80
|
(0, util_1.finish)(true, `Die LUX-Components ${index_2.updateMajorVersion} wurden erfolgreich eingerichtet.`, `${chalk.yellowBright('Fertig!')}`)
|
|
79
81
|
]);
|
|
80
82
|
};
|
package/collection.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
3
|
"schematics": {
|
|
4
|
+
"update-16.0.1": {
|
|
5
|
+
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 16.0.1",
|
|
6
|
+
"factory": "./updates/16.0.1/index#update160001",
|
|
7
|
+
"schema": "./updates/16.0.1/schema.json"
|
|
8
|
+
},
|
|
4
9
|
"update-16.0.0": {
|
|
5
10
|
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 16.0.0",
|
|
6
|
-
"factory": "./updates/16.0.0/index#
|
|
11
|
+
"factory": "./updates/16.0.0/index#update160000",
|
|
7
12
|
"schema": "./updates/16.0.0/schema.json"
|
|
8
13
|
},
|
|
9
14
|
"update-dependencies": {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { Rule } from '@angular-devkit/schematics';
|
|
|
2
2
|
export declare const updateMajorVersion = "16";
|
|
3
3
|
export declare const updateMinVersion = "15.5.1";
|
|
4
4
|
export declare const updateNodeMinVersion = "18.0.0";
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function update160000(options: any): Rule;
|
|
6
6
|
export declare function updateProject(_options: any): Rule;
|
|
7
7
|
export declare function updateI18NFiles(): Rule;
|
|
8
8
|
export declare const i18nDe = "<trans-unit id=\"luxc.dialog.btn.close.arialabel\" datatype=\"html\">\n <source>Dialog schlie\u00DFen</source>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-popups/lux-dialog/lux-dialog-structure/lux-dialog-structure.component.html</context>\n <context context-type=\"linenumber\">16</context>\n </context-group>\n </trans-unit>";
|
package/updates/16.0.0/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.i18nEn = exports.i18nDe = exports.updateI18NFiles = exports.updateProject = exports.
|
|
3
|
+
exports.i18nEn = exports.i18nDe = exports.updateI18NFiles = exports.updateProject = exports.update160000 = exports.updateNodeMinVersion = exports.updateMinVersion = exports.updateMajorVersion = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const chalk = require("chalk");
|
|
6
6
|
const index_1 = require("../../update-dependencies/index");
|
|
@@ -10,7 +10,7 @@ const validation_1 = require("../../utility/validation");
|
|
|
10
10
|
exports.updateMajorVersion = '16';
|
|
11
11
|
exports.updateMinVersion = '15.5.1';
|
|
12
12
|
exports.updateNodeMinVersion = '18.0.0';
|
|
13
|
-
function
|
|
13
|
+
function update160000(options) {
|
|
14
14
|
return (_tree, _context) => {
|
|
15
15
|
return (0, schematics_1.chain)([
|
|
16
16
|
check(options),
|
|
@@ -19,7 +19,7 @@ function update(options) {
|
|
|
19
19
|
]);
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
exports.
|
|
22
|
+
exports.update160000 = update160000;
|
|
23
23
|
function updateProject(_options) {
|
|
24
24
|
return (_tree, _context) => {
|
|
25
25
|
return (0, schematics_1.chain)([
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update160001 = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const chalk = require("chalk");
|
|
6
|
+
const index_1 = require("../../update-dependencies/index");
|
|
7
|
+
const util_1 = require("../../utility/util");
|
|
8
|
+
function update160001(_options, runNpmInstall = true) {
|
|
9
|
+
return (_tree, _context) => {
|
|
10
|
+
return (0, schematics_1.chain)([
|
|
11
|
+
(0, util_1.messageInfoRule)(`Die LUX-Components werden auf die Version 16.0.1 aktualisiert...`),
|
|
12
|
+
(0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
+
(0, index_1.updateDep)('@ihk-gfi/lux-components', '16.0.1', false),
|
|
14
|
+
(0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 16.0.1 aktualisiert.`),
|
|
15
|
+
(0, util_1.finish)(runNpmInstall, `${chalk.yellowBright('Fertig!')}`)
|
|
16
|
+
]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.update160001 = update160001;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "luxupdate160001Schema",
|
|
4
|
+
"title": "Aktualisiert das LUX-Componentsprojekt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Aktualisiert das LUX-Componentsprojekt",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Der Projektname",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "projectName"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"verbose": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"description": "Generiert mehr Logausgaben",
|
|
18
|
+
"default": false
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|