@ihk-gfi/lux-components-update 15.1.0 → 15.1.2

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
@@ -38,17 +38,3 @@ Wenn man die LUX-Components in seinem Projekt einrichten möchte, kann der folge
38
38
  ```bash
39
39
  ng generate @ihk-gfi/lux-components-update:add-lux-components
40
40
  ```
41
-
42
- ## Migration von TS-Lint nach ES-Lint
43
-
44
- ```bash
45
- ng generate @ihk-gfi/lux-components-update:migrate-to-eslint
46
- ```
47
-
48
- WICHTIG! Der Updater schreibt zusätzliche Befehle in die Console. Diese müssen manuell ausgeführt werden.
49
-
50
- ## Migration zur Web Component
51
-
52
- ```bash
53
- ng generate @ihk-gfi/lux-components-update:migrate-to-webcomponent
54
- ```
@@ -1,7 +1,7 @@
1
1
  <div>
2
2
  <lux-card luxTitle="Fehlerseite" luxSubTitle="404">
3
3
  <lux-card-info>
4
- <lux-icon luxIconName="error"></lux-icon>
4
+ <lux-icon luxIconName="lux-interface-alert-warning-circle"></lux-icon>
5
5
  </lux-card-info>
6
6
  <lux-card-content>
7
7
  Leider konnte die angeforderte Seite <b>{{ url404 }}</b> nicht gefunden werden!
@@ -1,6 +1,6 @@
1
1
  import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
2
 
3
- import { RouterTestingModule } from '@angular/router/testing';
3
+ import { HttpClientTestingModule } from '@angular/common/http/testing';
4
4
  import { NoopAnimationsModule } from '@angular/platform-browser/animations';
5
5
  import { RouterTestingModule } from '@angular/router/testing';
6
6
  import {
@@ -0,0 +1,15 @@
1
+ const fse = require('fs-extra');
2
+ const del = require('del');
3
+
4
+ console.log('> Script "move-de-files.js" started...');
5
+ fse.pathExists('dist/de').then((exists) => {
6
+ if (exists) {
7
+ console.log('> Move files (locale "de") to root folder...');
8
+ fse.copySync('dist/de', 'dist', { overwrite: true });
9
+ del.sync(['dist/de']);
10
+ } else {
11
+ console.log('> No folder "de" found. Nothing is to do.');
12
+ }
13
+ console.log('> Success!');
14
+ });
15
+ console.log('> Script "move-de-files.js" finished.');
@@ -11,8 +11,10 @@ const json_1 = require("../utility/json");
11
11
  const logging_1 = require("../utility/logging");
12
12
  const util_1 = require("../utility/util");
13
13
  const validation_1 = require("../utility/validation");
14
+ const _15_1_0_1 = require("../updates/15.1.0");
14
15
  function addLuxComponents(options) {
15
16
  return (_tree, _context) => {
17
+ var _a;
16
18
  const jsonPathAllowedCommonJS = ['projects', options.project, 'architect', 'build', 'options', 'allowedCommonJsDependencies'];
17
19
  const jsonPathBudget = ['projects', options.project, 'architect', 'build', 'configurations', 'production', 'budgets'];
18
20
  const budgetValue = {
@@ -73,7 +75,9 @@ function addLuxComponents(options) {
73
75
  (0, json_1.updateJsonArray)('/angular.json', jsonPathAllowedCommonJS, 'ng2-pdf-viewer'),
74
76
  (0, json_1.updateJsonArray)('/angular.json', jsonPathAllowedCommonJS, 'pdfjs-dist'),
75
77
  (0, json_1.updateJsonArray)('/angular.json', jsonPathAllowedCommonJS, 'dompurify'),
76
- (0, util_1.finish)(false, `Die LUX-Components ${index_2.updateMajorVersion} wurden erfolgreich eingerichtet.`, `${chalk.yellowBright('Fertig!')}`)
78
+ (0, files_1.deleteFile)(options, ((_a = options.path) !== null && _a !== void 0 ? _a : '') + '/package-lock.json'),
79
+ (0, _15_1_0_1.update150100)(options, false),
80
+ (0, util_1.finish)(true, `Die LUX-Components ${index_2.updateMajorVersion} wurden erfolgreich eingerichtet.`, `${chalk.yellowBright('Fertig!')}`)
77
81
  ]);
78
82
  };
79
83
  }
@@ -160,7 +164,6 @@ function copyAppFiles(options) {
160
164
  (0, files_1.moveFilesToDirectory)(options, 'files/environments', 'src/environments'),
161
165
  (0, files_1.moveFilesToDirectory)(options, 'files/locale', '/src/locale'),
162
166
  (0, files_1.moveFilesToDirectory)(options, 'files/root', '/'),
163
- (0, files_1.moveFilesToDirectory)(options, 'files/scripts', '/'),
164
167
  (0, files_1.moveFilesToDirectory)(options, 'files/src', '/src'),
165
168
  (0, util_1.messageSuccessRule)(`App-Dateien wurden angelegt.`)
166
169
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihk-gfi/lux-components-update",
3
- "version": "15.1.0",
3
+ "version": "15.1.2",
4
4
  "description": "Schematics für die Aktualisierung von LUX-Applikationen",
5
5
  "scripts": {
6
6
  "build": "npm run clean && tsc -p tsconfig.json",
@@ -1,2 +1,2 @@
1
1
  import { Rule } from '@angular-devkit/schematics';
2
- export declare function update150100(_options: any): Rule;
2
+ export declare function update150100(_options: any, runNpmInstall?: boolean): Rule;
@@ -5,7 +5,7 @@ const schematics_1 = require("@angular-devkit/schematics");
5
5
  const chalk = require("chalk");
6
6
  const index_1 = require("../../update-dependencies/index");
7
7
  const util_1 = require("../../utility/util");
8
- function update150100(_options) {
8
+ function update150100(_options, runNpmInstall = true) {
9
9
  return (_tree, _context) => {
10
10
  return (0, schematics_1.chain)([
11
11
  (0, util_1.messageInfoRule)(`Die LUX-Components werden auf die Version 15.1.0 aktualisiert...`),
@@ -13,7 +13,7 @@ function update150100(_options) {
13
13
  (0, index_1.updateDep)('@ihk-gfi/lux-components', '15.1.0', false),
14
14
  (0, index_1.updateDep)('@ihk-gfi/lux-components-theme', '15.1.0', false),
15
15
  (0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 15.1.0 aktualisiert.`),
16
- (0, util_1.finish)(true, `${chalk.yellowBright('Fertig!')}`)
16
+ (0, util_1.finish)(runNpmInstall, `${chalk.yellowBright('Fertig!')}`)
17
17
  ]);
18
18
  };
19
19
  }