@ihk-gfi/lux-components-update 13.2.0 → 13.3.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/package.json +1 -1
- package/src/collection.json +5 -0
- package/src/updates/update130300/index.d.ts +2 -0
- package/src/updates/update130300/index.js +35 -0
- package/src/updates/update130300/index.js.map +1 -0
- package/src/updates/update130300/index.ts +32 -0
- package/src/updates/update130300/index_spec.d.ts +1 -0
- package/src/updates/update130300/index_spec.js +85 -0
- package/src/updates/update130300/index_spec.js.map +1 -0
- package/src/updates/update130300/index_spec.ts +89 -0
- package/src/updates/update130300/schema.json +23 -0
package/package.json
CHANGED
package/src/collection.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"factory": "./updates/update130000/index#update",
|
|
7
7
|
"schema": "./updates/update130000/schema.json"
|
|
8
8
|
},
|
|
9
|
+
"update-13.3.0": {
|
|
10
|
+
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 13.3.0",
|
|
11
|
+
"factory": "./updates/update130300/index#update130300",
|
|
12
|
+
"schema": "./updates/update130300/schema.json"
|
|
13
|
+
},
|
|
9
14
|
"update-13.2.0": {
|
|
10
15
|
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 13.2.0",
|
|
11
16
|
"factory": "./updates/update130200/index#update130200",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update130300 = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const chalk = require("chalk");
|
|
6
|
+
const json_1 = require("../../utility/json");
|
|
7
|
+
const util_1 = require("../../utility/util");
|
|
8
|
+
function update130300(options) {
|
|
9
|
+
return (tree, context) => {
|
|
10
|
+
const filePath = '/package.json';
|
|
11
|
+
return (0, schematics_1.chain)([
|
|
12
|
+
(0, util_1.messageInfoRule)(`Die LUX-Components werden auf die Version 13.3.0 aktualisiert...`),
|
|
13
|
+
(0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
|
|
14
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@ihk-gfi/lux-components'], '13.3.0', true),
|
|
15
|
+
(0, json_1.updateJsonValue)(null, filePath, ['devDependencies', '@angular-devkit/build-angular'], '13.3.10', true),
|
|
16
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/animations'], '13.3.12', true),
|
|
17
|
+
(0, json_1.updateJsonValue)(null, filePath, ['devDependencies', '@angular/cli'], '13.3.10', true),
|
|
18
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/common'], '13.3.12', true),
|
|
19
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/compiler'], '13.3.12', true),
|
|
20
|
+
(0, json_1.updateJsonValue)(null, filePath, ['devDependencies', '@angular/compiler-cli'], '13.3.12', true),
|
|
21
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/core'], '13.3.12', true),
|
|
22
|
+
(0, json_1.updateJsonValue)(null, filePath, ['devDependencies', '@angular/elements'], '13.3.12', true),
|
|
23
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/forms'], '13.3.12', true),
|
|
24
|
+
(0, json_1.updateJsonValue)(null, filePath, ['devDependencies', '@angular/language-service'], '13.3.12', true),
|
|
25
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/localize'], '13.3.12', true),
|
|
26
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/platform-browser'], '13.3.12', true),
|
|
27
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/platform-browser-dynamic'], '13.3.12', true),
|
|
28
|
+
(0, json_1.updateJsonValue)(null, filePath, ['dependencies', '@angular/router'], '13.3.12', true), (0, util_1.messageSuccessRule)(`Die Datei "package.json" wurde angepasst.`),
|
|
29
|
+
(0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 13.2.0 aktualisiert.`),
|
|
30
|
+
(0, util_1.finish)(true, `${chalk.yellowBright('Fertig!')}`)
|
|
31
|
+
]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
exports.update130300 = update130300;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,+BAA+B;AAC/B,6CAAqD;AACrD,6CAAiF;AAEjF,SAAgB,YAAY,CAAC,OAAY;IACvC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,QAAQ,GAAG,eAAe,CAAC;QACjC,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,sBAAe,EAAC,kEAAkE,CAAC;YAEnF,IAAA,sBAAe,EAAC,4CAA4C,CAAC;YAC7D,IAAA,sBAAe,EAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,cAAc,EAAE,yBAAyB,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC5F,IAAA,sBAAe,EAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,iBAAiB,EAAE,+BAA+B,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC;YACtG,IAAA,sBAAe,EAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,cAAc,EAAE,qBAAqB,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC;YACzF,IAAA,sBAAe,EAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,iBAAiB,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC;YACrF,IAAA,sBAAe,EAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC;YACrF,IAAA,sBAAe,EAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,cAAc,EAAE,mBA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E,CAAC;SAChD,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA1BD,oCA0BC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
+
import * as chalk from 'chalk';
|
|
3
|
+
import { updateJsonValue } from '../../utility/json';
|
|
4
|
+
import { finish, messageInfoRule, messageSuccessRule } from '../../utility/util';
|
|
5
|
+
|
|
6
|
+
export function update130300(options: any): Rule {
|
|
7
|
+
return (tree: Tree, context: SchematicContext) => {
|
|
8
|
+
const filePath = '/package.json';
|
|
9
|
+
return chain([
|
|
10
|
+
messageInfoRule(`Die LUX-Components werden auf die Version 13.3.0 aktualisiert...`),
|
|
11
|
+
|
|
12
|
+
messageInfoRule(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
+
updateJsonValue(null, filePath, ['dependencies', '@ihk-gfi/lux-components'], '13.3.0', true),
|
|
14
|
+
updateJsonValue(null, filePath, ['devDependencies', '@angular-devkit/build-angular'], '13.3.10', true),
|
|
15
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/animations'], '13.3.12', true),
|
|
16
|
+
updateJsonValue(null, filePath, ['devDependencies', '@angular/cli'], '13.3.10', true),
|
|
17
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/common'], '13.3.12', true),
|
|
18
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/compiler'], '13.3.12', true),
|
|
19
|
+
updateJsonValue(null, filePath, ['devDependencies', '@angular/compiler-cli'], '13.3.12', true),
|
|
20
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/core'], '13.3.12', true),
|
|
21
|
+
updateJsonValue(null, filePath, ['devDependencies', '@angular/elements'], '13.3.12', true),
|
|
22
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/forms'], '13.3.12', true),
|
|
23
|
+
updateJsonValue(null, filePath, ['devDependencies', '@angular/language-service'], '13.3.12', true),
|
|
24
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/localize'], '13.3.12', true),
|
|
25
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/platform-browser'], '13.3.12', true),
|
|
26
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/platform-browser-dynamic'], '13.3.12', true),
|
|
27
|
+
updateJsonValue(null, filePath, ['dependencies', '@angular/router'], '13.3.12', true),messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
|
|
28
|
+
messageSuccessRule(`Die LUX-Components wurden auf die Version 13.2.0 aktualisiert.`),
|
|
29
|
+
finish(true,`${chalk.yellowBright('Fertig!')}`)
|
|
30
|
+
]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
|
+
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
14
|
+
const path = require("path");
|
|
15
|
+
const rxjs_1 = require("rxjs");
|
|
16
|
+
const dependencies_1 = require("../../utility/dependencies");
|
|
17
|
+
const test_1 = require("../../utility/test");
|
|
18
|
+
const util_1 = require("../../utility/util");
|
|
19
|
+
const index_1 = require("./index");
|
|
20
|
+
const collectionPath = path.join(__dirname, '../../collection.json');
|
|
21
|
+
describe('update130300', () => {
|
|
22
|
+
let appTree;
|
|
23
|
+
let runner;
|
|
24
|
+
let context;
|
|
25
|
+
const testOptions = {};
|
|
26
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
+
runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
28
|
+
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', test_1.workspaceOptions).toPromise();
|
|
29
|
+
appTree = yield runner
|
|
30
|
+
.runExternalSchematicAsync('@schematics/angular', 'application', test_1.appOptions, appTree)
|
|
31
|
+
.toPromise();
|
|
32
|
+
util_1.UtilConfig.defaultWaitMS = 0;
|
|
33
|
+
const collection = runner.engine.createCollection(collectionPath);
|
|
34
|
+
const schematic = runner.engine.createSchematic('update-13.3.0', collection);
|
|
35
|
+
context = runner.engine.createContext(schematic);
|
|
36
|
+
testOptions.project = test_1.appOptions.name;
|
|
37
|
+
testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
|
|
38
|
+
testOptions.verbose = true;
|
|
39
|
+
}));
|
|
40
|
+
describe('[Rule] update130300', () => {
|
|
41
|
+
it('Sollte die Abhängigkeiten aktualisieren', (done) => {
|
|
42
|
+
appTree.overwrite('/package.json', `
|
|
43
|
+
{
|
|
44
|
+
"name": "Lorem ipsum",
|
|
45
|
+
"version": "0.0.32",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc -p tsconfig.json",
|
|
48
|
+
"test": "npm run build && jasmine src/**/*_spec.js"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@ihk-gfi/lux-components": "13.1.0",
|
|
52
|
+
"@angular/animations": "13.3.7",
|
|
53
|
+
"@angular/cdk": "13.3.7",
|
|
54
|
+
"@angular/common": "13.3.7",
|
|
55
|
+
"@angular/compiler": "13.3.7",
|
|
56
|
+
"@angular/core": "13.3.7",
|
|
57
|
+
"@angular/forms": "13.3.7",
|
|
58
|
+
"@angular/localize": "13.3.7",
|
|
59
|
+
"@angular/material": "13.3.7",
|
|
60
|
+
"@angular/platform-browser": "13.3.7",
|
|
61
|
+
"@angular/platform-browser-dynamic": "13.3.7",
|
|
62
|
+
"@angular/router": "13.3.7"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@angular-devkit/build-angular": "13.3.5",
|
|
66
|
+
"@angular-eslint/builder": "13.2.1",
|
|
67
|
+
"@angular-eslint/eslint-plugin": "13.2.1",
|
|
68
|
+
"@angular-eslint/eslint-plugin-template": "13.2.1",
|
|
69
|
+
"@angular-eslint/schematics": "13.2.1",
|
|
70
|
+
"@angular-eslint/template-parser": "13.2.1",
|
|
71
|
+
"@angular/cli": "13.3.5",
|
|
72
|
+
"@angular/compiler-cli": "13.3.7",
|
|
73
|
+
"@angular/elements": "13.3.7",
|
|
74
|
+
"@angular/language-service": "13.3.7"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`);
|
|
78
|
+
(0, schematics_1.callRule)((0, index_1.update130300)(testOptions), (0, rxjs_1.of)(appTree), context).subscribe(() => {
|
|
79
|
+
expect((0, dependencies_1.getPackageJsonDependency)(appTree, '@ihk-gfi/lux-components').version).toEqual('13.3.0');
|
|
80
|
+
done();
|
|
81
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=index_spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,6BAA6B;AAC7B,+BAA0C;AAC1C,6DAAsE;AACtE,6CAAkE;AAClE,6CAAgD;AAChD,mCAAuC;AAEvC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;AAErE,QA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AC,IAAA,oBAAY,EAAC,WAAW,CAAC,EAAE,IAAA,SAAY,EAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,SAAS,CAC3E,GAAG,EAAE;gBACH,MAAM,CAAC,IAAA,uCAAwB,EAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC/F,IAAI,EAAE,CAAC;YACT,CAAC,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAC3C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { callRule, SchematicContext } from '@angular-devkit/schematics';
|
|
2
|
+
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
|
|
3
|
+
import * as path from 'path';
|
|
4
|
+
import { of as observableOf } from 'rxjs';
|
|
5
|
+
import { getPackageJsonDependency } from '../../utility/dependencies';
|
|
6
|
+
import { appOptions, workspaceOptions } from '../../utility/test';
|
|
7
|
+
import { UtilConfig } from '../../utility/util';
|
|
8
|
+
import { update130300 } from './index';
|
|
9
|
+
|
|
10
|
+
const collectionPath = path.join(__dirname, '../../collection.json');
|
|
11
|
+
|
|
12
|
+
describe('update130300', () => {
|
|
13
|
+
let appTree: UnitTestTree;
|
|
14
|
+
let runner: SchematicTestRunner;
|
|
15
|
+
let context: SchematicContext;
|
|
16
|
+
|
|
17
|
+
const testOptions: any = {};
|
|
18
|
+
|
|
19
|
+
beforeEach(async () => {
|
|
20
|
+
runner = new SchematicTestRunner('schematics', collectionPath);
|
|
21
|
+
|
|
22
|
+
appTree = await runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
23
|
+
appTree = await runner
|
|
24
|
+
.runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree)
|
|
25
|
+
.toPromise();
|
|
26
|
+
|
|
27
|
+
UtilConfig.defaultWaitMS = 0;
|
|
28
|
+
|
|
29
|
+
const collection = runner.engine.createCollection(collectionPath);
|
|
30
|
+
const schematic = runner.engine.createSchematic('update-13.3.0', collection);
|
|
31
|
+
context = runner.engine.createContext(schematic);
|
|
32
|
+
|
|
33
|
+
testOptions.project = appOptions.name;
|
|
34
|
+
testOptions.path = workspaceOptions.newProjectRoot + '/' + appOptions.name;
|
|
35
|
+
testOptions.verbose = true;
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
describe('[Rule] update130300', () => {
|
|
39
|
+
it('Sollte die Abhängigkeiten aktualisieren', (done) => {
|
|
40
|
+
appTree.overwrite(
|
|
41
|
+
'/package.json',
|
|
42
|
+
`
|
|
43
|
+
{
|
|
44
|
+
"name": "Lorem ipsum",
|
|
45
|
+
"version": "0.0.32",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc -p tsconfig.json",
|
|
48
|
+
"test": "npm run build && jasmine src/**/*_spec.js"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@ihk-gfi/lux-components": "13.1.0",
|
|
52
|
+
"@angular/animations": "13.3.7",
|
|
53
|
+
"@angular/cdk": "13.3.7",
|
|
54
|
+
"@angular/common": "13.3.7",
|
|
55
|
+
"@angular/compiler": "13.3.7",
|
|
56
|
+
"@angular/core": "13.3.7",
|
|
57
|
+
"@angular/forms": "13.3.7",
|
|
58
|
+
"@angular/localize": "13.3.7",
|
|
59
|
+
"@angular/material": "13.3.7",
|
|
60
|
+
"@angular/platform-browser": "13.3.7",
|
|
61
|
+
"@angular/platform-browser-dynamic": "13.3.7",
|
|
62
|
+
"@angular/router": "13.3.7"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@angular-devkit/build-angular": "13.3.5",
|
|
66
|
+
"@angular-eslint/builder": "13.2.1",
|
|
67
|
+
"@angular-eslint/eslint-plugin": "13.2.1",
|
|
68
|
+
"@angular-eslint/eslint-plugin-template": "13.2.1",
|
|
69
|
+
"@angular-eslint/schematics": "13.2.1",
|
|
70
|
+
"@angular-eslint/template-parser": "13.2.1",
|
|
71
|
+
"@angular/cli": "13.3.5",
|
|
72
|
+
"@angular/compiler-cli": "13.3.7",
|
|
73
|
+
"@angular/elements": "13.3.7",
|
|
74
|
+
"@angular/language-service": "13.3.7"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
callRule(update130300(testOptions), observableOf(appTree), context).subscribe(
|
|
81
|
+
() => {
|
|
82
|
+
expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('13.3.0');
|
|
83
|
+
done();
|
|
84
|
+
},
|
|
85
|
+
(reason) => expect(reason).toBeUndefined()
|
|
86
|
+
);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "luxUpdate130200Schema",
|
|
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
|
+
}
|