@ihk-gfi/lux-components-update 11.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/LICENSE +198 -0
- package/README.md +55 -0
- package/package.json +54 -0
- package/src/add-lux-components/files/app/app-routing.module.ts +19 -0
- package/src/add-lux-components/files/app/app.component.html +27 -0
- package/src/add-lux-components/files/app/app.component.spec.ts +19 -0
- package/src/add-lux-components/files/app/app.component.ts +13 -0
- package/src/add-lux-components/files/app/app.module.ts +56 -0
- package/src/add-lux-components/files/app/error/error.component.html +10 -0
- package/src/add-lux-components/files/app/error/error.component.scss +3 -0
- package/src/add-lux-components/files/app/error/error.component.spec.ts +49 -0
- package/src/add-lux-components/files/app/error/error.component.ts +17 -0
- package/src/add-lux-components/files/app/home/home.component.html +7 -0
- package/src/add-lux-components/files/app/home/home.component.scss +0 -0
- package/src/add-lux-components/files/app/home/home.component.ts +13 -0
- package/src/add-lux-components/files/app/profil/profil.component.html +1 -0
- package/src/add-lux-components/files/app/profil/profil.component.scss +0 -0
- package/src/add-lux-components/files/app/profil/profil.component.spec.ts +24 -0
- package/src/add-lux-components/files/app/profil/profil.component.ts +11 -0
- package/src/add-lux-components/files/environments/environment.prod.ts +4 -0
- package/src/add-lux-components/files/environments/environment.ts +17 -0
- package/src/add-lux-components/files/locale/messages.en.xlf +948 -0
- package/src/add-lux-components/files/locale/messages.xlf +822 -0
- package/src/add-lux-components/files/scripts/.browserslistrc +17 -0
- package/src/add-lux-components/files/src/polyfills.ts +68 -0
- package/src/add-lux-components/index.d.ts +10 -0
- package/src/add-lux-components/index.js +143 -0
- package/src/add-lux-components/index.js.map +1 -0
- package/src/add-lux-components/index.ts +183 -0
- package/src/add-lux-components/index_spec.d.ts +1 -0
- package/src/add-lux-components/index_spec.js +51 -0
- package/src/add-lux-components/index_spec.js.map +1 -0
- package/src/add-lux-components/index_spec.ts +55 -0
- package/src/add-lux-components/schema.json +23 -0
- package/src/collection.json +55 -0
- package/src/migrate-to-eslint/files/.eslintrc.json +68 -0
- package/src/migrate-to-eslint/files/.prettierrc +25 -0
- package/src/migrate-to-eslint/index.d.ts +6 -0
- package/src/migrate-to-eslint/index.js +149 -0
- package/src/migrate-to-eslint/index.js.map +1 -0
- package/src/migrate-to-eslint/index.ts +181 -0
- package/src/migrate-to-eslint/index_spec.d.ts +1 -0
- package/src/migrate-to-eslint/index_spec.js +129 -0
- package/src/migrate-to-eslint/index_spec.js.map +1 -0
- package/src/migrate-to-eslint/index_spec.ts +152 -0
- package/src/migrate-to-eslint/schema.json +23 -0
- package/src/migrate-to-webcomponent/index.d.ts +10 -0
- package/src/migrate-to-webcomponent/index.js +278 -0
- package/src/migrate-to-webcomponent/index.js.map +1 -0
- package/src/migrate-to-webcomponent/index.ts +331 -0
- package/src/migrate-to-webcomponent/index_spec.d.ts +1 -0
- package/src/migrate-to-webcomponent/index_spec.js +580 -0
- package/src/migrate-to-webcomponent/index_spec.js.map +1 -0
- package/src/migrate-to-webcomponent/index_spec.ts +703 -0
- package/src/migrate-to-webcomponent/schema.json +23 -0
- package/src/update/files/locale/messages.en.xlf +940 -0
- package/src/update/files/locale/messages.xlf +815 -0
- package/src/update/files/scripts/move-de-files.js +15 -0
- package/src/update/index.d.ts +23 -0
- package/src/update/index.js +635 -0
- package/src/update/index.js.map +1 -0
- package/src/update/index.ts +712 -0
- package/src/update/index_spec.d.ts +1 -0
- package/src/update/index_spec.js +990 -0
- package/src/update/index_spec.js.map +1 -0
- package/src/update/index_spec.ts +1145 -0
- package/src/update/schema.json +23 -0
- package/src/update-dependencies/index.d.ts +5 -0
- package/src/update-dependencies/index.js +113 -0
- package/src/update-dependencies/index.js.map +1 -0
- package/src/update-dependencies/index.ts +114 -0
- package/src/update-dependencies/schema.json +23 -0
- package/src/update110001/index.d.ts +2 -0
- package/src/update110001/index.js +42 -0
- package/src/update110001/index.js.map +1 -0
- package/src/update110001/index.ts +40 -0
- package/src/update110001/index_spec.d.ts +1 -0
- package/src/update110001/index_spec.js +67 -0
- package/src/update110001/index_spec.js.map +1 -0
- package/src/update110001/index_spec.ts +72 -0
- package/src/update110001/schema.json +23 -0
- package/src/update110100/index.d.ts +2 -0
- package/src/update110100/index.js +27 -0
- package/src/update110100/index.js.map +1 -0
- package/src/update110100/index.ts +24 -0
- package/src/update110100/index_spec.d.ts +1 -0
- package/src/update110100/index_spec.js +69 -0
- package/src/update110100/index_spec.js.map +1 -0
- package/src/update110100/index_spec.ts +73 -0
- package/src/update110100/schema.json +23 -0
- package/src/update110101/index.d.ts +2 -0
- package/src/update110101/index.js +24 -0
- package/src/update110101/index.js.map +1 -0
- package/src/update110101/index.ts +21 -0
- package/src/update110101/index_spec.d.ts +1 -0
- package/src/update110101/index_spec.js +65 -0
- package/src/update110101/index_spec.js.map +1 -0
- package/src/update110101/index_spec.ts +69 -0
- package/src/update110101/schema.json +23 -0
- package/src/update110200/index.d.ts +2 -0
- package/src/update110200/index.js +24 -0
- package/src/update110200/index.js.map +1 -0
- package/src/update110200/index.ts +21 -0
- package/src/update110200/index_spec.d.ts +1 -0
- package/src/update110200/index_spec.js +65 -0
- package/src/update110200/index_spec.js.map +1 -0
- package/src/update110200/index_spec.ts +69 -0
- package/src/update110200/schema.json +23 -0
- package/src/update110300/index.d.ts +2 -0
- package/src/update110300/index.js +133 -0
- package/src/update110300/index.js.map +1 -0
- package/src/update110300/index.ts +148 -0
- package/src/update110300/index_spec.d.ts +1 -0
- package/src/update110300/index_spec.js +121 -0
- package/src/update110300/index_spec.js.map +1 -0
- package/src/update110300/index_spec.ts +139 -0
- package/src/update110300/schema.json +23 -0
- package/src/utility/dependencies.d.ts +39 -0
- package/src/utility/dependencies.js +96 -0
- package/src/utility/dependencies.js.map +1 -0
- package/src/utility/dependencies.ts +116 -0
- package/src/utility/files.d.ts +60 -0
- package/src/utility/files.js +299 -0
- package/src/utility/files.js.map +1 -0
- package/src/utility/files.ts +355 -0
- package/src/utility/html.d.ts +49 -0
- package/src/utility/html.js +183 -0
- package/src/utility/html.js.map +1 -0
- package/src/utility/html.ts +212 -0
- package/src/utility/json.d.ts +34 -0
- package/src/utility/json.js +70 -0
- package/src/utility/json.js.map +1 -0
- package/src/utility/json.ts +70 -0
- package/src/utility/logging.d.ts +32 -0
- package/src/utility/logging.js +82 -0
- package/src/utility/logging.js.map +1 -0
- package/src/utility/logging.ts +80 -0
- package/src/utility/test.d.ts +10 -0
- package/src/utility/test.js +24 -0
- package/src/utility/test.js.map +1 -0
- package/src/utility/test.ts +24 -0
- package/src/utility/typescript.d.ts +22 -0
- package/src/utility/typescript.js +521 -0
- package/src/utility/typescript.js.map +1 -0
- package/src/utility/typescript.ts +598 -0
- package/src/utility/typescript_spec.d.ts +1 -0
- package/src/utility/typescript_spec.js +1006 -0
- package/src/utility/typescript_spec.js.map +1 -0
- package/src/utility/typescript_spec.ts +1267 -0
- package/src/utility/util.d.ts +33 -0
- package/src/utility/util.js +139 -0
- package/src/utility/util.js.map +1 -0
- package/src/utility/util.ts +140 -0
- package/src/utility/validation.d.ts +11 -0
- package/src/utility/validation.js +44 -0
- package/src/utility/validation.js.map +1 -0
- package/src/utility/validation.ts +49 -0
- package/tsconfig.json +37 -0
|
@@ -0,0 +1,580 @@
|
|
|
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 test_1 = require("../utility/test");
|
|
17
|
+
const util_1 = require("../utility/util");
|
|
18
|
+
const index_1 = require("./index");
|
|
19
|
+
const collectionPath = path.join(__dirname, '../collection.json');
|
|
20
|
+
describe('migrate-to-eslint', () => {
|
|
21
|
+
let appTree;
|
|
22
|
+
let runner;
|
|
23
|
+
let context;
|
|
24
|
+
const testOptions = {};
|
|
25
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
+
runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
27
|
+
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', test_1.workspaceOptions).toPromise();
|
|
28
|
+
appTree = yield runner
|
|
29
|
+
.runExternalSchematicAsync('@schematics/angular', 'application', test_1.appOptions, appTree)
|
|
30
|
+
.toPromise();
|
|
31
|
+
util_1.UtilConfig.defaultWaitMS = 0;
|
|
32
|
+
const collection = runner.engine.createCollection(collectionPath);
|
|
33
|
+
const schematic = runner.engine.createSchematic('migrate-to-webcomponent', collection);
|
|
34
|
+
context = runner.engine.createContext(schematic);
|
|
35
|
+
testOptions.project = test_1.appOptions.name;
|
|
36
|
+
testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
|
|
37
|
+
testOptions.verbose = true;
|
|
38
|
+
}));
|
|
39
|
+
describe('[Rule] updateAppComponent', () => {
|
|
40
|
+
it('Sollte die Datei "app.component.ts" angepasst haben', (done) => {
|
|
41
|
+
appTree.overwrite((testOptions.path ? testOptions.path : '') + `/src/app/app.component.ts`, `
|
|
42
|
+
import { Version } from './../../src-gen/bsclient/model/version';
|
|
43
|
+
import { AccountFacadeService } from './../../src-gen/bsclient/api/accountFacade.service';
|
|
44
|
+
import { Component, OnInit } from '@angular/core';
|
|
45
|
+
import { Router } from '@angular/router';
|
|
46
|
+
import { LuxAppFooterLinkService, LuxAppFooterLinkInfo, LuxThemeService } from '@ihk-gfi/lux-components';
|
|
47
|
+
import { FeedbackService } from './components/feedback/feedback.service';
|
|
48
|
+
import { SharedService } from './services/shared.service';
|
|
49
|
+
|
|
50
|
+
@Component({
|
|
51
|
+
selector : 'app-root',
|
|
52
|
+
templateUrl: './app.component.html',
|
|
53
|
+
styleUrls : [ './app.component.scss' ]
|
|
54
|
+
})
|
|
55
|
+
export class AppComponent implements OnInit {
|
|
56
|
+
|
|
57
|
+
luxVersion = '';
|
|
58
|
+
isMaintenanceOrUnauthorized = false;
|
|
59
|
+
|
|
60
|
+
constructor(private readonly fachService: AccountFacadeService,
|
|
61
|
+
public router: Router, public window: Window,
|
|
62
|
+
public sharedService: SharedService,
|
|
63
|
+
private linkService: LuxAppFooterLinkService,
|
|
64
|
+
public feedbackService: FeedbackService, private themeService: LuxThemeService) {
|
|
65
|
+
themeService.loadTheme();
|
|
66
|
+
this.isMaintenanceOrUnauthorized = window.location.href.endsWith('/maintenance') || window.location.href.endsWith('/unauthorized');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
`);
|
|
72
|
+
schematics_1.callRule(index_1.updateAppComponent(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
73
|
+
var _a;
|
|
74
|
+
const content = (_a = success.read((testOptions.path ? testOptions.path : '') + `/src/app/app.component.ts`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
75
|
+
expect(content).toContain('private themeService: LuxThemeService, private elementRef: ElementRef, private appService: LuxAppService)');
|
|
76
|
+
expect(content).toContain('import { LuxAppFooterLinkService, LuxAppFooterLinkInfo, LuxThemeService, LuxAppService } from \'@ihk-gfi/lux-components\';');
|
|
77
|
+
expect(content).toContain('import { Component, OnInit, ElementRef, Input } from \'@angular/core\';');
|
|
78
|
+
expect(content).toContain('private elementRef: ElementRef, private appService: LuxAppService) {\n' +
|
|
79
|
+
' this.appService.appEl = elementRef.nativeElement;\n' +
|
|
80
|
+
' themeService.loadTheme();\n' +
|
|
81
|
+
' this.isMaintenanceOrUnauthorized = window.location.href.endsWith(\'/maintenance\') || window.location.href.endsWith(\'/unauthorized\');\n' +
|
|
82
|
+
' router.initialNavigation();\n' +
|
|
83
|
+
' }');
|
|
84
|
+
expect(content).toContain('@Input() luxAppHeader: \'normal\' | \'minimal\' | \'none\' = \'normal\';');
|
|
85
|
+
expect(content).toContain('@Input() luxAppFooter: \'normal\' | \'minimal\' | \'none\' = \'normal\';');
|
|
86
|
+
expect(content).toContain('@Input() luxMode: \'stand-alone\' | \'portal\' = \'stand-alone\';');
|
|
87
|
+
done();
|
|
88
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
describe('[Rule] updatePackageJson', () => {
|
|
92
|
+
it('Sollte die Datei "package.json" (ohne skripte) angepasst haben', (done) => {
|
|
93
|
+
appTree.overwrite(`package.json`, `
|
|
94
|
+
|
|
95
|
+
`);
|
|
96
|
+
schematics_1.callRule(index_1.updatePackageJson(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
97
|
+
var _a;
|
|
98
|
+
const content = (_a = success.read(`package.json`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
99
|
+
expect(content).toContain('"build-aot": "node --max_old_space_size=4024 ./node_modules/@angular/cli/bin/ng build --aot --single-bundle --output-hashing none && npm run move-de-files"');
|
|
100
|
+
expect(content).toContain('"buildzentral": "node --max_old_space_size=4024 ./node_modules/@angular/cli/bin/ng build --prod --single-bundle --output-hashing none --plugin @ihk-gfi/lux-components/ie11-lazy-modules-plugin.js && npm run move-de-files"');
|
|
101
|
+
expect(content).toContain('"@webcomponents/webcomponentsjs"');
|
|
102
|
+
expect(content).toContain('"ngx-build-plus"');
|
|
103
|
+
expect(content).toContain('"@angular/elements"');
|
|
104
|
+
expect(content).toContain('"replace-in-file"');
|
|
105
|
+
done();
|
|
106
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
107
|
+
});
|
|
108
|
+
it('Sollte die Datei "package.json" (mit skripte) angepasst haben', (done) => {
|
|
109
|
+
appTree.overwrite(`package.json`, `
|
|
110
|
+
{
|
|
111
|
+
"name": "bar",
|
|
112
|
+
"version": "0.0.1",
|
|
113
|
+
"license": "MIT",
|
|
114
|
+
"scripts": {
|
|
115
|
+
"ng": "ng",
|
|
116
|
+
"start": "ng serve --public-host=http://localhost:4200",
|
|
117
|
+
"build": "node --max_old_space_size=4024 ./node_modules/@angular/cli/bin/ng build --source-map",
|
|
118
|
+
"build-aot": "node --max_old_space_size=4024 ./node_modules/@angular/cli/bin/ng build --aot && npm run move-de-files",
|
|
119
|
+
"buildzentral": "node --max_old_space_size=4024 ./node_modules/@angular/cli/bin/ng build --prod && npm run move-de-files",
|
|
120
|
+
},
|
|
121
|
+
"private": true,
|
|
122
|
+
"dependencies": {
|
|
123
|
+
},
|
|
124
|
+
"devDependencies": {
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
`);
|
|
129
|
+
schematics_1.callRule(index_1.updatePackageJson(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
130
|
+
var _a;
|
|
131
|
+
const content = (_a = success.read(`package.json`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
132
|
+
expect(content).toContain('"build-aot": "node --max_old_space_size=4024 ./node_modules/@angular/cli/bin/ng build --aot --single-bundle --output-hashing none && npm run move-de-files"');
|
|
133
|
+
expect(content).toContain('"buildzentral": "node --max_old_space_size=4024 ./node_modules/@angular/cli/bin/ng build --prod --single-bundle --output-hashing none --plugin @ihk-gfi/lux-components/ie11-lazy-modules-plugin.js && npm run move-de-files"');
|
|
134
|
+
expect(content).toContain('"@webcomponents/webcomponentsjs"');
|
|
135
|
+
expect(content).toContain('"ngx-build-plus"');
|
|
136
|
+
expect(content).toContain('"@angular/elements"');
|
|
137
|
+
expect(content).toContain('"replace-in-file"');
|
|
138
|
+
done();
|
|
139
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
describe('[Rule] updateAppRoutingModule', () => {
|
|
143
|
+
it('Sollte die Datei "app-routing.module.ts" angepasst haben', (done) => {
|
|
144
|
+
appTree.create((testOptions.path ? testOptions.path : '') + `/src/app/app-routing.module.ts`, `
|
|
145
|
+
const routes: Routes = [
|
|
146
|
+
{path: '', component: HomeComponent},
|
|
147
|
+
{path: 'impressum', component: ImpressumComponent},
|
|
148
|
+
{path: 'anbindung', loadChildren: () => import('app/components/anbindung/anbindung.module').then(m => m.AnbindungModule)},
|
|
149
|
+
{path: 'information', loadChildren: () => import('app/components/info/info.module').then(m => m.InfoModule)},
|
|
150
|
+
{path: '**', component: ErrorComponent} // Immer als letzte Route !! -> 404!
|
|
151
|
+
];
|
|
152
|
+
|
|
153
|
+
`);
|
|
154
|
+
schematics_1.callRule(index_1.updateAppRoutingModule(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
155
|
+
var _a;
|
|
156
|
+
const content = (_a = success.read((testOptions.path ? testOptions.path : '') + `/src/app/app-routing.module.ts`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
157
|
+
expect(content).not.toContain('import(\'app/');
|
|
158
|
+
expect(content).toContain('import(\'./');
|
|
159
|
+
done();
|
|
160
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
161
|
+
});
|
|
162
|
+
it('Sollte die Datei "app-routing.module.ts" (Doppelte Anführungszeichen) angepasst haben', (done) => {
|
|
163
|
+
appTree.create((testOptions.path ? testOptions.path : '') + `/src/app/app-routing.module.ts`, `
|
|
164
|
+
const routes: Routes = [
|
|
165
|
+
{path: '', component: HomeComponent},
|
|
166
|
+
{path: 'impressum', component: ImpressumComponent},
|
|
167
|
+
{path: 'anbindung', loadChildren: () => import("app/components/anbindung/anbindung.module").then(m => m.AnbindungModule)},
|
|
168
|
+
{path: 'information', loadChildren: () => import("app/components/info/info.module").then(m => m.InfoModule)},
|
|
169
|
+
{path: '**', component: ErrorComponent} // Immer als letzte Route !! -> 404!
|
|
170
|
+
];
|
|
171
|
+
|
|
172
|
+
`);
|
|
173
|
+
schematics_1.callRule(index_1.updateAppRoutingModule(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
174
|
+
var _a;
|
|
175
|
+
const content = (_a = success.read((testOptions.path ? testOptions.path : '') + `/src/app/app-routing.module.ts`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
176
|
+
expect(content).not.toContain('import("app/');
|
|
177
|
+
expect(content).toContain('import("./');
|
|
178
|
+
done();
|
|
179
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
describe('[Rule] updateAngularJson', () => {
|
|
183
|
+
it('Sollte die Datei "angular.json" angepasst haben', (done) => {
|
|
184
|
+
appTree.overwrite(`angular.json`, `
|
|
185
|
+
{
|
|
186
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
187
|
+
"version": 1,
|
|
188
|
+
"newProjectRoot": "projects",
|
|
189
|
+
"projects": {
|
|
190
|
+
"bar": {
|
|
191
|
+
"root": "",
|
|
192
|
+
"sourceRoot": "src",
|
|
193
|
+
"projectType": "application",
|
|
194
|
+
"architect": {
|
|
195
|
+
"build": {
|
|
196
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
197
|
+
"options": {
|
|
198
|
+
"outputPath": "dist",
|
|
199
|
+
"index": "src/index.html",
|
|
200
|
+
"main": "src/main.ts",
|
|
201
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
202
|
+
"polyfills": "src/polyfills.ts",
|
|
203
|
+
"assets": [
|
|
204
|
+
{
|
|
205
|
+
"glob": "*.css",
|
|
206
|
+
"input": "./node_modules/@ihk-gfi/lux-components-theme/prebuilt-themes",
|
|
207
|
+
"output": "./assets/themes"
|
|
208
|
+
},
|
|
209
|
+
"src/assets",
|
|
210
|
+
{
|
|
211
|
+
"glob": "**/*",
|
|
212
|
+
"input": "./node_modules/pdfjs-dist/cmaps/",
|
|
213
|
+
"output": "./assets/cmaps"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"styles": [
|
|
217
|
+
"src/styles.scss"
|
|
218
|
+
],
|
|
219
|
+
"scripts": [],
|
|
220
|
+
"allowedCommonJsDependencies": [
|
|
221
|
+
"hammerjs",
|
|
222
|
+
"ng2-pdf-viewer"
|
|
223
|
+
],
|
|
224
|
+
"localize": [
|
|
225
|
+
"de"
|
|
226
|
+
],
|
|
227
|
+
"i18nMissingTranslation": "error"
|
|
228
|
+
},
|
|
229
|
+
"configurations": {
|
|
230
|
+
"production": {
|
|
231
|
+
"budgets": [
|
|
232
|
+
{
|
|
233
|
+
"type": "anyComponentStyle",
|
|
234
|
+
"maximumWarning": "6kb"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"optimization": true,
|
|
238
|
+
"outputHashing": "all",
|
|
239
|
+
"sourceMap": false,
|
|
240
|
+
"namedChunks": false,
|
|
241
|
+
"aot": true,
|
|
242
|
+
"extractLicenses": true,
|
|
243
|
+
"vendorChunk": false,
|
|
244
|
+
"buildOptimizer": true,
|
|
245
|
+
"fileReplacements": [
|
|
246
|
+
{
|
|
247
|
+
"replace": "src/environments/environment.ts",
|
|
248
|
+
"with": "src/environments/environment.prod.ts"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
"es5": {
|
|
253
|
+
"budgets": [
|
|
254
|
+
{
|
|
255
|
+
"type": "anyComponentStyle",
|
|
256
|
+
"maximumWarning": "6kb"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"tsConfig": "src/tsconfig.app.ie.json"
|
|
260
|
+
},
|
|
261
|
+
"en": {
|
|
262
|
+
"localize": [
|
|
263
|
+
"en"
|
|
264
|
+
],
|
|
265
|
+
"aot": true,
|
|
266
|
+
"outputPath": "dist/en",
|
|
267
|
+
"i18nMissingTranslation": "error"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"serve": {
|
|
272
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
273
|
+
"options": {
|
|
274
|
+
"browserTarget": "lux-bp:build"
|
|
275
|
+
},
|
|
276
|
+
"configurations": {
|
|
277
|
+
"production": {
|
|
278
|
+
"browserTarget": "lux-bp:build:production"
|
|
279
|
+
},
|
|
280
|
+
"es5": {
|
|
281
|
+
"browserTarget": "lux-bp:build:es5"
|
|
282
|
+
},
|
|
283
|
+
"en": {
|
|
284
|
+
"browserTarget": "lux-bp:build:en"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"extract-i18n": {
|
|
289
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
290
|
+
"options": {
|
|
291
|
+
"browserTarget": "lux-bp:build"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"test": {
|
|
295
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
296
|
+
"options": {
|
|
297
|
+
"main": "src/test.ts",
|
|
298
|
+
"karmaConfig": "./karma.conf.js",
|
|
299
|
+
"polyfills": "src/polyfills.ts",
|
|
300
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
301
|
+
"scripts": [],
|
|
302
|
+
"styles": [
|
|
303
|
+
"src/styles.scss"
|
|
304
|
+
],
|
|
305
|
+
"assets": [
|
|
306
|
+
{
|
|
307
|
+
"glob": "*.css",
|
|
308
|
+
"input": "./node_modules/@ihk-gfi/lux-components-theme/prebuilt-themes",
|
|
309
|
+
"output": "./assets/themes"
|
|
310
|
+
},
|
|
311
|
+
"src/assets",
|
|
312
|
+
{
|
|
313
|
+
"glob": "**/*",
|
|
314
|
+
"input": "./node_modules/pdfjs-dist/cmaps/",
|
|
315
|
+
"output": "./assets/cmaps"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"lint": {
|
|
321
|
+
"builder": "@angular-eslint/builder:lint",
|
|
322
|
+
"options": {
|
|
323
|
+
"lintFilePatterns": [
|
|
324
|
+
"src/**/*.ts",
|
|
325
|
+
"src/**/*.html"
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"i18n": {
|
|
331
|
+
"sourceLocale": {
|
|
332
|
+
"code": "de",
|
|
333
|
+
"baseHref": "/"
|
|
334
|
+
},
|
|
335
|
+
"locales": {
|
|
336
|
+
"en": "src/locale/messages.en.xlf"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"lux-bp-e2e": {
|
|
341
|
+
"root": "e2e",
|
|
342
|
+
"sourceRoot": "e2e",
|
|
343
|
+
"projectType": "application",
|
|
344
|
+
"architect": {
|
|
345
|
+
"e2e": {
|
|
346
|
+
"builder": "@angular-devkit/build-angular:protractor",
|
|
347
|
+
"options": {
|
|
348
|
+
"protractorConfig": "./protractor.conf.js",
|
|
349
|
+
"devServerTarget": "lux-bp:serve"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"defaultProject": "lux-bp",
|
|
356
|
+
"schematics": {
|
|
357
|
+
"@schematics/angular:component": {
|
|
358
|
+
"prefix": "bp",
|
|
359
|
+
"style": "scss"
|
|
360
|
+
},
|
|
361
|
+
"@schematics/angular:directive": {
|
|
362
|
+
"prefix": "bp"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"cli": {
|
|
366
|
+
"defaultCollection": "@angular-eslint/schematics"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
`);
|
|
371
|
+
schematics_1.callRule(index_1.updateAngularJson(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
372
|
+
var _a;
|
|
373
|
+
const content = (_a = success.read(`angular.json`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
374
|
+
expect(content).toContain('"scripts": [\n' +
|
|
375
|
+
' {\n' +
|
|
376
|
+
' "bundleName": "polyfill-webcomp",\n' +
|
|
377
|
+
' "input": "node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js"\n' +
|
|
378
|
+
' },\n' +
|
|
379
|
+
' {\n' +
|
|
380
|
+
' "bundleName": "polyfill-webcomp-es5",\n' +
|
|
381
|
+
' "input": "node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"\n' +
|
|
382
|
+
' }\n' +
|
|
383
|
+
' ]');
|
|
384
|
+
expect(content).not.toContain('@angular-devkit/build-angular:browser');
|
|
385
|
+
expect(content).toContain('ngx-build-plus:browser');
|
|
386
|
+
expect(content).not.toContain('@angular-devkit/build-angular:dev-server');
|
|
387
|
+
expect(content).toContain('ngx-build-plus:dev-server');
|
|
388
|
+
expect(content).not.toContain('@angular-devkit/build-angular:karma');
|
|
389
|
+
expect(content).toContain('ngx-build-plus:karma');
|
|
390
|
+
done();
|
|
391
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
describe('[Rule] updateAppModule', () => {
|
|
395
|
+
it('Sollte die Datei "app.module.ts" (ohne Konstruktor) angepasst haben', (done) => {
|
|
396
|
+
appTree.overwrite((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`, `
|
|
397
|
+
import { AppRoutingModule } from './app-routing.module';
|
|
398
|
+
import { NgModule, ErrorHandler } from '@angular/core';
|
|
399
|
+
import { AppComponent } from './app.component';
|
|
400
|
+
|
|
401
|
+
export class AppModule {
|
|
402
|
+
|
|
403
|
+
}
|
|
404
|
+
`);
|
|
405
|
+
schematics_1.callRule(index_1.updateAppModule(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
406
|
+
var _a;
|
|
407
|
+
const content = (_a = success.read((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
408
|
+
expect(content).toContain('import { createCustomElement } from \'@angular/elements\';');
|
|
409
|
+
expect(content).toContain('export class AppModule implements DoBootstrap');
|
|
410
|
+
expect(content).toContain('constructor(private injector: Injector) {}');
|
|
411
|
+
done();
|
|
412
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
413
|
+
});
|
|
414
|
+
it('Sollte die Datei "app.module.ts" (mit Konstruktor - ohne Parameter) angepasst haben', (done) => {
|
|
415
|
+
appTree.overwrite((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`, `
|
|
416
|
+
import { AppRoutingModule } from './app-routing.module';
|
|
417
|
+
import { NgModule, ErrorHandler } from '@angular/core';
|
|
418
|
+
import { AppComponent } from './app.component';
|
|
419
|
+
|
|
420
|
+
export class AppModule {
|
|
421
|
+
|
|
422
|
+
constructor() {}
|
|
423
|
+
|
|
424
|
+
}
|
|
425
|
+
`);
|
|
426
|
+
schematics_1.callRule(index_1.updateAppModule(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
427
|
+
var _a;
|
|
428
|
+
const content = (_a = success.read((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
429
|
+
expect(content).toContain('import { createCustomElement } from \'@angular/elements\';');
|
|
430
|
+
expect(content).toContain('export class AppModule implements DoBootstrap');
|
|
431
|
+
expect(content).toContain('constructor(private injector: Injector) {}');
|
|
432
|
+
done();
|
|
433
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
434
|
+
});
|
|
435
|
+
it('Sollte die Datei "app.module.ts" (mit Konstruktor - mit Parameter) angepasst haben', (done) => {
|
|
436
|
+
appTree.overwrite((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`, `
|
|
437
|
+
import { AppRoutingModule } from './app-routing.module';
|
|
438
|
+
import { NgModule, ErrorHandler } from '@angular/core';
|
|
439
|
+
import { AppComponent } from './app.component';
|
|
440
|
+
|
|
441
|
+
export class AppModule {
|
|
442
|
+
|
|
443
|
+
constructor(private aaa: Aaa) {}
|
|
444
|
+
|
|
445
|
+
ngOnInit() {
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
`);
|
|
449
|
+
schematics_1.callRule(index_1.updateAppModule(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
450
|
+
var _a;
|
|
451
|
+
const content = (_a = success.read((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
452
|
+
expect(content).toContain('import { createCustomElement } from \'@angular/elements\';');
|
|
453
|
+
expect(content).toContain('export class AppModule implements DoBootstrap');
|
|
454
|
+
expect(content).toContain('constructor(private aaa: Aaa, private injector: Injector) {}');
|
|
455
|
+
done();
|
|
456
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
457
|
+
});
|
|
458
|
+
it('Sollte die Datei "app.module.ts" (bootstrap entfernen - schema hinzufügen) angepasst haben', (done) => {
|
|
459
|
+
appTree.overwrite((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`, `
|
|
460
|
+
import { AppRoutingModule } from './app-routing.module';
|
|
461
|
+
import { NgModule, ErrorHandler } from '@angular/core';
|
|
462
|
+
import { AppComponent } from './app.component';
|
|
463
|
+
|
|
464
|
+
@NgModule({
|
|
465
|
+
declarations : [
|
|
466
|
+
AppComponent
|
|
467
|
+
],
|
|
468
|
+
imports : [
|
|
469
|
+
HttpClientModule
|
|
470
|
+
],
|
|
471
|
+
entryComponents: [
|
|
472
|
+
LuxSnackbarComponent,
|
|
473
|
+
LuxFilePreviewComponent
|
|
474
|
+
],
|
|
475
|
+
providers : [
|
|
476
|
+
LuxDialogService,
|
|
477
|
+
DatePipe,
|
|
478
|
+
{ provide: Window, useValue: window }
|
|
479
|
+
],
|
|
480
|
+
bootstrap : [
|
|
481
|
+
AppComponent
|
|
482
|
+
]
|
|
483
|
+
})
|
|
484
|
+
export class AppModule {
|
|
485
|
+
|
|
486
|
+
constructor(private aaa: Aaa) {}
|
|
487
|
+
|
|
488
|
+
ngOnInit() {
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
`);
|
|
492
|
+
schematics_1.callRule(index_1.updateAppModule(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
493
|
+
var _a;
|
|
494
|
+
const content = (_a = success.read((testOptions.path ? testOptions.path : '') + `/src/app/app.module.ts`)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
495
|
+
expect(content).toContain('schemas: [CUSTOM_ELEMENTS_SCHEMA]');
|
|
496
|
+
expect(content).not.toContain('bootstrap :');
|
|
497
|
+
done();
|
|
498
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
describe('[Rule] updateIndexHtml', () => {
|
|
502
|
+
it('Sollte die Datei "index.html" angepasst haben', (done) => {
|
|
503
|
+
appTree.create('src/index.html', `
|
|
504
|
+
<!doctype html>
|
|
505
|
+
<html lang="de">
|
|
506
|
+
<head>
|
|
507
|
+
<meta charset="utf-8">
|
|
508
|
+
<title>LUX Blueprint</title>
|
|
509
|
+
<base href="/">
|
|
510
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
511
|
+
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
512
|
+
</head>
|
|
513
|
+
<body style="margin: 0">
|
|
514
|
+
<noscript>
|
|
515
|
+
<div id="no-js" class="lux-no-js">
|
|
516
|
+
<p><b>Achtung, Javascript ist deaktiviert.</b></p>
|
|
517
|
+
<p>Bitte aktivieren Sie Javascript in Ihrem Browser, damit die Applikation funktionsfähig ist.</p>
|
|
518
|
+
</div>
|
|
519
|
+
</noscript>
|
|
520
|
+
<app-root></app-root>
|
|
521
|
+
</body>
|
|
522
|
+
</html>
|
|
523
|
+
`);
|
|
524
|
+
const newTestOptions = JSON.parse(JSON.stringify(testOptions));
|
|
525
|
+
newTestOptions.project = 'Ka-74öäü';
|
|
526
|
+
schematics_1.callRule(index_1.updateIndexHtml(newTestOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
527
|
+
var _a;
|
|
528
|
+
const content = (_a = success.read('src/index.html')) === null || _a === void 0 ? void 0 : _a.toString();
|
|
529
|
+
expect(content).not.toContain('<app-root></app-root>');
|
|
530
|
+
expect(content).toContain('<lux-ka></lux-ka>');
|
|
531
|
+
done();
|
|
532
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
describe('[Rule] updateAppComponentHtml', () => {
|
|
536
|
+
it('Sollte die Datei "app.component.html" angepasst haben', (done) => {
|
|
537
|
+
appTree.overwrite(testOptions.path + '/src/app/app.component.html', `
|
|
538
|
+
<lux-app-header luxAppTitle="LUX Blueprint" luxAppTitleShort="LUX"
|
|
539
|
+
luxUserName="{{sharedService.getBenutzernameAsObservable() | async}}">
|
|
540
|
+
</lux-app-header>
|
|
541
|
+
|
|
542
|
+
<lux-app-header-right-nav *ngIf="(sharedService.isLoggedInAsObservable() | async)">
|
|
543
|
+
<lux-menu-item luxIconName="fa-power-off" luxLabel="Abmelden"
|
|
544
|
+
(luxClicked)="sharedService.logout(true)"></lux-menu-item>
|
|
545
|
+
</lux-app-header-right-nav>
|
|
546
|
+
|
|
547
|
+
<lux-app-content></lux-app-content>
|
|
548
|
+
|
|
549
|
+
<lux-app-footer *ngIf="this.luxAppFooter !== 'none'" luxVersion="{{luxVersion}}">
|
|
550
|
+
</lux-app-footer>
|
|
551
|
+
`);
|
|
552
|
+
schematics_1.callRule(index_1.updateAppComponentHtml(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
553
|
+
var _a;
|
|
554
|
+
const content = (_a = success.read(testOptions.path + '/src/app/app.component.html')) === null || _a === void 0 ? void 0 : _a.toString();
|
|
555
|
+
expect(content).toContain('*ngIf="this.luxAppHeader !== \'none\'"');
|
|
556
|
+
expect(content).toContain('*ngIf="(sharedService.isLoggedInAsObservable() | async) && luxMode === \'stand-alone\'"');
|
|
557
|
+
expect(content).toContain('*ngIf="this.luxAppFooter !== \'none\'"');
|
|
558
|
+
expect(content).toContain('<lux-app-content></lux-app-content>');
|
|
559
|
+
expect(content).not.toContain('<lux-app-content/>');
|
|
560
|
+
done();
|
|
561
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
562
|
+
});
|
|
563
|
+
});
|
|
564
|
+
describe('[Rule] createWebpackConfigJs', () => {
|
|
565
|
+
it('Sollte die Datei "webpack.config.js" angelegt haben', (done) => {
|
|
566
|
+
schematics_1.callRule(index_1.createWebpackConfigJs(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
|
|
567
|
+
var _a;
|
|
568
|
+
const content = (_a = success.read('webpack.config.js')) === null || _a === void 0 ? void 0 : _a.toString();
|
|
569
|
+
expect(content).toContain(`
|
|
570
|
+
module.exports = {
|
|
571
|
+
output: {
|
|
572
|
+
jsonpFunction: 'jsonpFunctionBar'
|
|
573
|
+
}
|
|
574
|
+
};`);
|
|
575
|
+
done();
|
|
576
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
});
|
|
580
|
+
//# 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,0CAA+D;AAC/D,0CAA6C;AAC7C,mCASiB;AAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,IAAI,OAAqB,CAAC;IAC1B,IAAI,MAA2B,CAAC;IAChC,IAAI,OAAyB,CAAC;IAE9B,MAAM,WAAW,GAAQ,EAAE,CAAC;IAE5B,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,GAAG,IAAI,6BAAmB,CAAC,YA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