@ihk-gfi/lux-components-update 21.0.0 → 21.1.0

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/README.md CHANGED
@@ -1,39 +1,17 @@
1
1
  # LUX-Components-Update
2
2
 
3
- Dieses Projekt enthält alle Updateskripte (umgesetzt mit Angular Schematics) für die LUX-Components.
3
+ Dieses Projekt enthält alle Updateskripte (umgesetzt mit Angular Schematics) für die [LUX-Components](https://www.npmjs.com/package/@ihk-gfi/lux-components).
4
4
 
5
- Updateskripte:
6
-
7
- - `update-19.x.x` (aktualisiert das Projekt auf die Version 19.x.x)
8
- - `add-lux-components` (fügt die LUX-Components zu einem Angular-Projekt hinzu)
9
-
10
- ## Voraussetzungen
11
-
12
- Stellen Sie zunächst sicher, dass Sie die Angular-Schematics-Cli installiert haben:
5
+ ## Installation
13
6
 
14
7
  ```bash
15
- npm install -g @angular-devkit/schematics-cli
8
+ npm install @ihk-gfi/lux-components-update
16
9
  ```
17
10
 
18
11
  ## LUX-Components im Projekt aktualisieren
19
12
 
20
- Um ein Updateskript zu starten, kann der folgende Befehl verwendet werden:
21
-
22
- ```bash
23
- ng generate @ihk-gfi/lux-components-update:update-19.x.x
24
- ```
25
-
26
- Falls erst einmal ein Testdurchlauf ohne persistente Änderungen gewünscht ist,
27
- ist es möglich den Aufruf mit dem Flag "--dry-run" zu versehen:
28
-
29
- ```bash
30
- ng generate @ihk-gfi/lux-components-update:update-19.x.x --dry-run
31
- ```
32
-
33
- ## LUX-Components im Projekt einrichten
34
-
35
- Wenn man die LUX-Components in seinem Projekt einrichten möchte, kann der folgende Befehl verwendet werden:
13
+ Um ein Updateskript zu starten, kann folgender Befehl verwendet werden:
36
14
 
37
15
  ```bash
38
- ng generate @ihk-gfi/lux-components-update:add-lux-components
16
+ ng generate @ihk-gfi/lux-components-update:update-x.x.x
39
17
  ```
package/collection.json CHANGED
@@ -6,6 +6,21 @@
6
6
  "factory": "./src/update-standalone-imports/index#updateStandAloneImports",
7
7
  "schema": "./src/update-standalone-imports/schema.json"
8
8
  },
9
+ "update-21.1.0": {
10
+ "description": "Aktualisiert das LUX-Componentsprojekt auf die Version 21.1.0",
11
+ "factory": "./src/updates/21.1.0/index#update210100",
12
+ "schema": "./src/updates/21.1.0/schema.json"
13
+ },
14
+ "update-21.0.0": {
15
+ "description": "Aktualisiert das LUX-Componentsprojekt auf die Version 21.0.0",
16
+ "factory": "./src/updates/21.0.0/index#update210000",
17
+ "schema": "./src/updates/21.0.0/schema.json"
18
+ },
19
+ "update-19.6.0": {
20
+ "description": "Aktualisiert das LUX-Componentsprojekt auf die Version 19.6.0",
21
+ "factory": "./src/updates/19.6.0/index#update190600",
22
+ "schema": "./src/updates/19.6.0/schema.json"
23
+ },
9
24
  "update-19.5.0": {
10
25
  "description": "Aktualisiert das LUX-Componentsprojekt auf die Version 19.5.0",
11
26
  "factory": "./src/updates/19.5.0/index#update190500",
@@ -36,11 +51,6 @@
36
51
  "factory": "./src/updates/19.0.0/index#update190000",
37
52
  "schema": "./src/updates/19.0.0/schema.json"
38
53
  },
39
- "update-21.0.0": {
40
- "description": "Aktualisiert das LUX-Componentsprojekt auf die Version 21.0.0",
41
- "factory": "./src/updates/21.0.0/index#update210000",
42
- "schema": "./src/updates/21.0.0/schema.json"
43
- },
44
54
  "update-dependencies": {
45
55
  "description": "Aktualisiert die Abhängigkeiten im LUX-Componentsprojekt",
46
56
  "factory": "./src/update-dependencies/index#updateDependencies",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihk-gfi/lux-components-update",
3
- "version": "21.0.0",
3
+ "version": "21.1.0",
4
4
  "description": "Schematics für die Aktualisierung von LUX-Applikationen",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.update190600 = update190600;
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 update190600(_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 19.6.0 aktualisiert...`),
12
+ (0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
13
+ (0, index_1.updateDep)('@ihk-gfi/lux-components', '19.6.0', false),
14
+ (0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 19.6.0 aktualisiert.`),
15
+ (0, util_1.finish)(runNpmInstall, `${chalk.yellowBright('Fertig!')}`)
16
+ ]);
17
+ };
18
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "luxupdate190600Schema",
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
+ }
@@ -22,7 +22,7 @@ const typescript_1 = require("../../utility/typescript");
22
22
  const util_1 = require("../../utility/util");
23
23
  const validation_1 = require("../../utility/validation");
24
24
  exports.updateMajorVersion = '21';
25
- exports.updateMinVersion = '19.5.0';
25
+ exports.updateMinVersion = '19.6.0';
26
26
  exports.updateNodeMinVersion = '20.0.0';
27
27
  exports.addOrUpdate = false;
28
28
  function update210000(options) {
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.update210100 = update210100;
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 update210100(_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 21.1.0 aktualisiert...`),
12
+ (0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
13
+ (0, index_1.updateDep)('@ihk-gfi/lux-components', '21.1.0', false),
14
+ (0, index_1.updateDep)('@ihk-gfi/lux-components-theme', '21.1.0', false),
15
+ (0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 21.1.0 aktualisiert.`),
16
+ (0, util_1.finish)(runNpmInstall, `${chalk.yellowBright('Fertig!')}`)
17
+ ]);
18
+ };
19
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "luxupdate210100Schema",
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
+ }