Skip to content

Commit b70d1a8

Browse files
authored
Generic UI migration (#16)
* feat: add wc app * fix: fix tests * feat: adjust jest configs * feat: add tests * feat: add organization-managment & remove luigiCoreService
1 parent c3ef297 commit b70d1a8

File tree

80 files changed

+5256
-706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+5256
-706
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Compiled output
44
/dist
5+
/dist-wc
56
/tmp
67
/out-tsc
78
/bazel-out

angular.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,63 @@
2727
"test": {
2828
"builder": "@angular-builders/jest:run",
2929
"options": {
30-
"tsConfig": "./tsconfig.spec.json"
30+
"configPath": "jest.config.js",
31+
"tsConfig": "tsconfig.spec.json"
32+
}
33+
}
34+
}
35+
},
36+
"wc": {
37+
"projectType": "application",
38+
"root": "projects/wc",
39+
"sourceRoot": "projects/wc/src",
40+
"prefix": "wc",
41+
"architect": {
42+
"build": {
43+
"builder": "ngx-build-plus:browser",
44+
"options": {
45+
"outputPath": "dist-wc/assets",
46+
"singleBundle": true,
47+
"outputHashing": "none",
48+
"index": "",
49+
"main": "projects/wc/src/main.ts",
50+
"assets": ["projects/wc/src/assets"],
51+
"scripts": []
52+
},
53+
"configurations": {
54+
"production": {
55+
"optimization": true,
56+
"buildOptimizer": true,
57+
"sourceMap": false,
58+
"extractLicenses": false,
59+
"vendorChunk": false,
60+
"namedChunks": false,
61+
"tsConfig": "projects/wc/tsconfig.app.prod.json"
62+
},
63+
"development": {
64+
"aot": true,
65+
"optimization": false,
66+
"buildOptimizer": false,
67+
"sourceMap": true,
68+
"extractLicenses": false,
69+
"namedChunks": true,
70+
"vendorChunk": true,
71+
"tsConfig": "projects/wc/tsconfig.app.json"
72+
}
73+
},
74+
"defaultConfiguration": "production"
75+
},
76+
"test": {
77+
"builder": "@angular-builders/jest:run",
78+
"options": {
79+
"configPath": "jest.config.js",
80+
"tsConfig": "tsconfig.spec.json"
81+
}
82+
},
83+
"lint": {
84+
"builder": "@angular-eslint/builder:lint",
85+
"options": {
86+
"lintFilePatterns": ["projects/wc/**/*.ts", "projects/wc/**/*.html"]
3187
}
3288
}
3389
}

jest.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ module.exports = {
22
preset: 'jest-preset-angular',
33
testRunner: 'jest-jasmine2',
44
collectCoverage: true,
5-
modulePathIgnorePatterns: ['<rootDir>/dist/'],
5+
modulePathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/dist-wc/', '<rootDir>/.yalc/'],
66
coveragePathIgnorePatterns: ['/node_modules/', '/integration-tests/'],
77
moduleNameMapper: {
88
'^@luigi-project/client-support-angular$': '<rootDir>/projects/lib/_mocks_/luigi-client-support-angular.ts',
9+
'^@platform-mesh/portal-ui-lib$': '<rootDir>/projects/lib/public-api.ts',
10+
'^@platform-mesh/portal-ui-lib/services$': '<rootDir>/projects/lib/services/public-api.ts',
11+
'^@platform-mesh/portal-ui-lib/utils$': '<rootDir>/projects/lib/utils/public-api.ts',
12+
'^@platform-mesh/portal-ui-lib/(.*)': '<rootDir>/projects/lib/$1',
913
},
1014
};

0 commit comments

Comments
 (0)