@ihk-gfi/lux-components-update 19.0.0 → 19.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/collection.json +5 -0
- package/package.json +1 -1
- package/src/update-dependencies/index.js +2 -2
- package/src/updates/19.0.0/files/root/eslint.config.js +49 -0
- package/src/updates/19.0.0/files/root/move-de-files.js +27 -0
- package/src/updates/19.0.0/index.js +1 -4
- package/src/updates/19.1.0/index.js +18 -0
- package/src/updates/19.1.0/schema.json +23 -0
package/collection.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"factory": "./src/update-standalone-imports/index#updateStandAloneImports",
|
|
7
7
|
"schema": "./src/update-standalone-imports/schema.json"
|
|
8
8
|
},
|
|
9
|
+
"update-19.1.0": {
|
|
10
|
+
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 19.1.0",
|
|
11
|
+
"factory": "./src/updates/19.1.0/index#update190100",
|
|
12
|
+
"schema": "./src/updates/19.1.0/schema.json"
|
|
13
|
+
},
|
|
9
14
|
"update-19.0.0": {
|
|
10
15
|
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 19.0.0",
|
|
11
16
|
"factory": "./src/updates/19.0.0/index#update190000",
|
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ function updateDependencies() {
|
|
|
26
26
|
deleteDevDep('@angular-eslint/schematics'),
|
|
27
27
|
deleteDevDep('@angular-eslint/template-parser'),
|
|
28
28
|
deleteDevDep('@types/marked'),
|
|
29
|
+
deleteDevDep('typescript-eslint'),
|
|
29
30
|
deleteDevDep('@typescript-eslint/eslint-plugin'),
|
|
30
31
|
deleteDevDep('@typescript-eslint/parser'),
|
|
31
32
|
deleteDevDep('del'),
|
|
@@ -52,7 +53,7 @@ function updateDependencies() {
|
|
|
52
53
|
updateDep('tslib', '^2.8.1', updateIfExists),
|
|
53
54
|
updateDep('zone.js', '~0.15.0', addOrUpdate),
|
|
54
55
|
updateDevDep('@angular-devkit/build-angular', '^19.2.5', addOrUpdate),
|
|
55
|
-
updateDevDep('angular-eslint', '
|
|
56
|
+
updateDevDep('angular-eslint', '19.3.0', addOrUpdate),
|
|
56
57
|
updateDevDep('@angular/cli', '^19.2.5', addOrUpdate),
|
|
57
58
|
updateDevDep('@angular/compiler-cli', '^19.2.4', addOrUpdate),
|
|
58
59
|
updateDevDep('@angular/elements', '^19.2.4', addOrUpdate),
|
|
@@ -60,7 +61,6 @@ function updateDependencies() {
|
|
|
60
61
|
updateDevDep('@compodoc/compodoc', '^1.1.26', updateIfExists),
|
|
61
62
|
updateDevDep('@ihk-gfi/lux-components-update', '^19.0.0', addOrUpdate),
|
|
62
63
|
updateDevDep('@types/jasmine', '~5.1.5', addOrUpdate),
|
|
63
|
-
updateDevDep('typescript-eslint', '8.16.0', addOrUpdate),
|
|
64
64
|
updateDevDep('eslint', '^9.21.0', updateIfExists),
|
|
65
65
|
updateDevDep('fs-extra', '11.2.0', updateIfExists),
|
|
66
66
|
updateDevDep('jasmine-core', '~5.2.0', addOrUpdate),
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
const eslint = require('@eslint/js');
|
|
3
|
+
const tseslint = require('typescript-eslint');
|
|
4
|
+
const angular = require('angular-eslint');
|
|
5
|
+
|
|
6
|
+
module.exports = tseslint.config(
|
|
7
|
+
{
|
|
8
|
+
files: ['**/*.ts'],
|
|
9
|
+
extends: [eslint.configs.recommended, ...tseslint.configs.recommended, ...tseslint.configs.stylistic, ...angular.configs.tsRecommended],
|
|
10
|
+
processor: angular.processInlineTemplates,
|
|
11
|
+
rules: {
|
|
12
|
+
'@angular-eslint/directive-selector': [
|
|
13
|
+
'error',
|
|
14
|
+
{
|
|
15
|
+
type: 'attribute',
|
|
16
|
+
prefix: 'app',
|
|
17
|
+
style: 'camelCase'
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
'@angular-eslint/component-selector': [
|
|
21
|
+
'error',
|
|
22
|
+
{
|
|
23
|
+
type: 'element',
|
|
24
|
+
prefix: 'app',
|
|
25
|
+
style: 'kebab-case'
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
'@typescript-eslint/no-unused-vars': [
|
|
29
|
+
'error',
|
|
30
|
+
{
|
|
31
|
+
args: 'all',
|
|
32
|
+
argsIgnorePattern: '^_',
|
|
33
|
+
caughtErrors: 'all',
|
|
34
|
+
caughtErrorsIgnorePattern: '^_',
|
|
35
|
+
destructuredArrayIgnorePattern: '^_',
|
|
36
|
+
varsIgnorePattern: '^_',
|
|
37
|
+
ignoreRestSiblings: true
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"@angular-eslint/prefer-standalone": "warn",
|
|
41
|
+
"@typescript-eslint/no-explicit-any": "off"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
files: ['**/*.html'],
|
|
46
|
+
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
|
|
47
|
+
rules: {}
|
|
48
|
+
}
|
|
49
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const fse = require('fs-extra');
|
|
2
|
+
|
|
3
|
+
console.log('> Script "move-de-files.js" started...');
|
|
4
|
+
|
|
5
|
+
if (fse.pathExistsSync('dist/browser/de')) {
|
|
6
|
+
console.log('> Move files (locale "de")...');
|
|
7
|
+
fse.copySync('dist/browser/de', 'dist/', { overwrite: true });
|
|
8
|
+
fse.removeSync('dist/browser/de');
|
|
9
|
+
console.log('> Success!');
|
|
10
|
+
} else {
|
|
11
|
+
console.log('> No folder "de" found. Nothing is to do.');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if (fse.pathExistsSync('dist/browser/en')) {
|
|
15
|
+
console.log('> Move files (locale "en")...');
|
|
16
|
+
fse.copySync('dist/browser/en', 'dist/en', { overwrite: true });
|
|
17
|
+
fse.removeSync('dist/browser/en');
|
|
18
|
+
console.log('> Success!');
|
|
19
|
+
} else {
|
|
20
|
+
console.log('> No folder "en" found. Nothing is to do.');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (fse.pathExistsSync('dist/browser')) {
|
|
24
|
+
fse.removeSync('dist/browser');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
console.log('> Script "move-de-files.js" finished.');
|
|
@@ -159,13 +159,10 @@ function updateTsConfigAppJson(options) {
|
|
|
159
159
|
function updateTsConfigSpecJson(options) {
|
|
160
160
|
return (_tree, _context) => {
|
|
161
161
|
const filePath = (options.path ?? '') + '/src/tsconfig.spec.json';
|
|
162
|
-
const testPath = ['files'];
|
|
163
|
-
const testFn = (node) => (0, json_1.findStringInArray)(node, 'test.ts');
|
|
164
162
|
const i18nPath = ['compilerOptions', 'types'];
|
|
165
163
|
const i18nValue = '@angular/localize';
|
|
166
164
|
return (0, schematics_1.chain)([
|
|
167
165
|
(0, util_1.messageInfoRule)(`tsconfig.spec.json wird angepasst...`),
|
|
168
|
-
(0, json_1.deleteJsonArray)(filePath, testPath, testFn),
|
|
169
166
|
(0, json_1.updateJsonArray)(filePath, i18nPath, i18nValue),
|
|
170
167
|
(0, util_1.messageSuccessRule)(`tsconfig.spec.json wurde angepasst.`)
|
|
171
168
|
]);
|
|
@@ -186,7 +183,7 @@ function updateTestTs(options) {
|
|
|
186
183
|
const filePath = (options.path ?? '') + '/src/main.ts';
|
|
187
184
|
return (0, schematics_1.chain)([
|
|
188
185
|
(0, util_1.messageInfoRule)(`test.ts wird angepasst...`),
|
|
189
|
-
(0, files_1.replaceRule)(options, 'I18N wird angepasst...', 'I18N wurde angepasst.', filePath, new replace_item_1.ReplaceItem("import '@angular/localize/init';", '/// <reference types="@angular/localize" />')),
|
|
186
|
+
(0, files_1.replaceRule)(options, 'I18N wird angepasst...', 'I18N wurde angepasst.', filePath, new replace_item_1.ReplaceItem("import '@angular/localize/init';", '/// <reference types="@angular/localize" />'), new replace_item_1.ReplaceItem('import "@angular/localize/init";', '/// <reference types="@angular/localize" />')),
|
|
190
187
|
(0, util_1.messageSuccessRule)(`test.ts wurde angepasst.`)
|
|
191
188
|
]);
|
|
192
189
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update190100 = update190100;
|
|
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 update190100(_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.1.0 aktualisiert...`),
|
|
12
|
+
(0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
+
(0, index_1.updateDep)('@ihk-gfi/lux-components', '19.1.0', false),
|
|
14
|
+
(0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 19.1.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": "luxupdate190100Schema",
|
|
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
|
+
}
|