@eui/tools 4.15.8 → 4.15.12
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/.version.properties +1 -1
- package/CHANGELOG.md +41 -0
- package/bin/eui-scripts.js +2 -0
- package/bin/scripts/build-package-sub.js +20 -0
- package/global.test.js +3 -3
- package/package.json +12 -16
- package/sandbox.js +3 -2
- package/scripts/csdr/cli/app.js +30 -3
- package/scripts/csdr/cli/package.js +41 -5
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +33 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +5 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +50 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +6 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +3 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +21 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +26 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +19 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +7 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +15 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +7 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +8 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +17 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/shared/shared.module.ts +15 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +8 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +41 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/index.html +22 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/en.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/fr.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/lib/module.ts +11 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +32 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/angular.json +3 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote/dependencies-composite.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.scss +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.spec.ts +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.component.ts +62 -28
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.ts +33 -33
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/routing.module.ts +22 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/en.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/fr.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/config/global.ts +8 -5
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/index.html +1 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote/tsconfig.app.json +3 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +90 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +64 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +8 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +3 -0
- package/scripts/csdr/cli/skeletons/package/{frontend-remote/src/app/dummy.spec.ts.TO_REPLACE → frontend-remote-eui10/src/app/dummy.spec.ts} +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +71 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +165 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +28 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +42 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +51 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +31 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +15 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +12 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +86 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/test.ts.TO_REPLACE +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +18 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +15 -0
- package/scripts/csdr/config/angular.js +220 -10
- package/scripts/csdr/config/global.js +16 -0
- package/scripts/csdr/install/common.js +26 -8
- package/scripts/csdr/jira/jira-utils.js +168 -168
- package/scripts/csdr/jira/update.js +150 -150
- package/scripts/csdr/metadata/app-envs.js +34 -33
- package/scripts/csdr/metadata/app-history.js +62 -61
- package/scripts/csdr/metadata/common.js +44 -41
- package/scripts/csdr/metadata/package-history.js +0 -1
- package/scripts/csdr/release/package/remote.js +3 -3
- package/scripts/csdr/release/package/ui.js +3 -3
- package/scripts/csdr/sync/sync-utils.js +6 -2
- package/scripts/utils/build/package/build-package-utils.js +45 -0
- package/scripts/utils/build/package/styles.js +106 -7
- package/scripts/utils/confluence-utils.js +126 -126
- package/scripts/utils/index.js +2 -2
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/favicon.ico +0 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/app.module.ts +52 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/core/reducers/index.ts +40 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/global.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/index.ts +8 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/modules.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.dev.ts +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.prod.ts +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.ts +21 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/favicon.ico +0 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/karma.conf.js +7 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/main.ts +21 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/polyfills.ts +86 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/tst.ts +33 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.app.json +19 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.spec.json +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tslint.json +17 -0
- package/scripts/utils/pre-build/injection/skeletons.js +6 -2
- package/scripts/utils/pre-build/projects.js +5 -1
- package/scripts/utils/tools.js +13 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/webpack.extra.js +0 -7
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
+
* You can add your own extra polyfills to this file.
|
|
4
|
+
*
|
|
5
|
+
* This file is divided into 2 sections:
|
|
6
|
+
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
+
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
+
* file.
|
|
9
|
+
*
|
|
10
|
+
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
+
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
+
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
+
*
|
|
14
|
+
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************************************
|
|
18
|
+
* BROWSER POLYFILLS
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
|
22
|
+
// import 'core-js/es6/symbol';
|
|
23
|
+
// import 'core-js/es6/object';
|
|
24
|
+
// import 'core-js/es6/function';
|
|
25
|
+
// import 'core-js/es6/parse-int';
|
|
26
|
+
// import 'core-js/es6/parse-float';
|
|
27
|
+
// import 'core-js/es6/number';
|
|
28
|
+
// import 'core-js/es6/math';
|
|
29
|
+
// import 'core-js/es6/string';
|
|
30
|
+
// import 'core-js/es6/date';
|
|
31
|
+
// import 'core-js/es6/array';
|
|
32
|
+
// import 'core-js/es6/regexp';
|
|
33
|
+
// import 'core-js/es6/map';
|
|
34
|
+
// import 'core-js/es6/weak-map';
|
|
35
|
+
// import 'core-js/es6/set';
|
|
36
|
+
|
|
37
|
+
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
38
|
+
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
39
|
+
|
|
40
|
+
/** IE10 and IE11 requires the following for the Reflect API. */
|
|
41
|
+
// import 'core-js/es6/reflect';
|
|
42
|
+
|
|
43
|
+
/** Evergreen browsers require these. **/
|
|
44
|
+
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
|
|
45
|
+
// import 'core-js/es7/reflect';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Web Animations `@angular/platform-browser/animations`
|
|
49
|
+
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
50
|
+
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
51
|
+
**/
|
|
52
|
+
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
56
|
+
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
60
|
+
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
61
|
+
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
65
|
+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
66
|
+
*/
|
|
67
|
+
// (window as any).__Zone_enable_cross_context_check = true;
|
|
68
|
+
|
|
69
|
+
/***************************************************************************************************
|
|
70
|
+
* Zone JS is required by default for Angular itself.
|
|
71
|
+
*/
|
|
72
|
+
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
|
73
|
+
|
|
74
|
+
/***************************************************************************************************
|
|
75
|
+
* APPLICATION IMPORTS
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Date, currency, decimal and percent pipes.
|
|
80
|
+
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
|
|
81
|
+
*/
|
|
82
|
+
// import 'intl'; // Run `npm install --save intl`.
|
|
83
|
+
/**
|
|
84
|
+
* Need to import at least one locale-data with intl.
|
|
85
|
+
*/
|
|
86
|
+
// import 'intl/locale-data/jsonp/en';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js/dist/zone-testing';
|
|
4
|
+
import { getTestBed } from '@angular/core/testing';
|
|
5
|
+
import {
|
|
6
|
+
BrowserDynamicTestingModule,
|
|
7
|
+
platformBrowserDynamicTesting
|
|
8
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
9
|
+
|
|
10
|
+
declare const require: any;
|
|
11
|
+
|
|
12
|
+
// First, initialize the Angular testing environment.
|
|
13
|
+
getTestBed().initTestEnvironment(
|
|
14
|
+
BrowserDynamicTestingModule,
|
|
15
|
+
platformBrowserDynamicTesting()
|
|
16
|
+
);
|
|
17
|
+
// Then we find all the tests.
|
|
18
|
+
const context = require.context('./', true, /\.spec\.ts$/);
|
|
19
|
+
// And load the modules.
|
|
20
|
+
context.keys().map(context);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/app",
|
|
5
|
+
"module": "es2015",
|
|
6
|
+
"target": "es2015",
|
|
7
|
+
"types": [
|
|
8
|
+
"node"
|
|
9
|
+
],
|
|
10
|
+
"paths": {
|
|
11
|
+
"os": ["./node_modules/empty-module/index.js"],
|
|
12
|
+
"node-fetch": ["./node_modules/empty-module/index.js"],
|
|
13
|
+
"zipkin": ["./node_modules/zipkin/dist/zipkin.js"]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"exclude": [
|
|
17
|
+
"src/test.ts",
|
|
18
|
+
"**/*.spec.ts"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/spec",
|
|
5
|
+
"types": [
|
|
6
|
+
"jasmine",
|
|
7
|
+
"node"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/test.ts",
|
|
12
|
+
"src/polyfills.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"**/*.spec.ts",
|
|
16
|
+
"**/*.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const webpack = require('webpack');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
plugins: [
|
|
5
|
+
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
|
6
|
+
],
|
|
7
|
+
|
|
8
|
+
// When importing a module whose path matches one of the following, just
|
|
9
|
+
// assume a corresponding global variable exists and use that instead.
|
|
10
|
+
// This is important because it allows us to avoid bundling all of our
|
|
11
|
+
// dependencies, which allows browsers to cache those libraries between builds.
|
|
12
|
+
externals: {
|
|
13
|
+
'quill': 'Quill',
|
|
14
|
+
},
|
|
15
|
+
}
|
|
@@ -85,7 +85,7 @@ const angularProjectDef = {
|
|
|
85
85
|
{
|
|
86
86
|
"type": "initial",
|
|
87
87
|
"maximumWarning": "2mb",
|
|
88
|
-
"maximumError": "
|
|
88
|
+
"maximumError": "7mb"
|
|
89
89
|
}
|
|
90
90
|
]
|
|
91
91
|
},
|
|
@@ -109,7 +109,7 @@ const angularProjectDef = {
|
|
|
109
109
|
{
|
|
110
110
|
"type": "initial",
|
|
111
111
|
"maximumWarning": "2mb",
|
|
112
|
-
"maximumError": "
|
|
112
|
+
"maximumError": "7mb"
|
|
113
113
|
}
|
|
114
114
|
]
|
|
115
115
|
},
|
|
@@ -145,7 +145,7 @@ const angularProjectDef = {
|
|
|
145
145
|
{
|
|
146
146
|
"type": "initial",
|
|
147
147
|
"maximumWarning": "2mb",
|
|
148
|
-
"maximumError": "
|
|
148
|
+
"maximumError": "7mb"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
},
|
|
@@ -169,7 +169,7 @@ const angularProjectDef = {
|
|
|
169
169
|
{
|
|
170
170
|
"type": "initial",
|
|
171
171
|
"maximumWarning": "2mb",
|
|
172
|
-
"maximumError": "
|
|
172
|
+
"maximumError": "7mb"
|
|
173
173
|
}
|
|
174
174
|
]
|
|
175
175
|
},
|
|
@@ -278,7 +278,7 @@ const angularProjectDefFullSkeleton = {
|
|
|
278
278
|
{
|
|
279
279
|
"type": "initial",
|
|
280
280
|
"maximumWarning": "2mb",
|
|
281
|
-
"maximumError": "
|
|
281
|
+
"maximumError": "7mb"
|
|
282
282
|
}
|
|
283
283
|
]
|
|
284
284
|
},
|
|
@@ -302,7 +302,7 @@ const angularProjectDefFullSkeleton = {
|
|
|
302
302
|
{
|
|
303
303
|
"type": "initial",
|
|
304
304
|
"maximumWarning": "2mb",
|
|
305
|
-
"maximumError": "
|
|
305
|
+
"maximumError": "7mb"
|
|
306
306
|
}
|
|
307
307
|
]
|
|
308
308
|
}
|
|
@@ -326,6 +326,130 @@ const angularProjectDefFullSkeleton = {
|
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
+
|
|
330
|
+
const angularProjectDefFullSkeletonV13 = {
|
|
331
|
+
"root": "",
|
|
332
|
+
"sourceRoot": "apps/@project.name@/src",
|
|
333
|
+
"projectType": "application",
|
|
334
|
+
"prefix": "app",
|
|
335
|
+
"schematics": {
|
|
336
|
+
"@schematics/angular:component": {
|
|
337
|
+
"style": "scss"
|
|
338
|
+
},
|
|
339
|
+
"@schematics/angular:application": {
|
|
340
|
+
"strict": true
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"architect": {
|
|
344
|
+
"build": {
|
|
345
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
346
|
+
"options": {
|
|
347
|
+
"outputPath": "apps/@project.name@/dist",
|
|
348
|
+
"index": "apps/@project.name@/src/index.html",
|
|
349
|
+
"main": "apps/@project.name@/src/_generated/main.ts",
|
|
350
|
+
"polyfills": "apps/@project.name@/src/_generated/polyfills.ts",
|
|
351
|
+
"tsConfig": "apps/@project.name@/tsconfig.app.json",
|
|
352
|
+
"assets": [
|
|
353
|
+
"apps/@project.name@/src/favicon.ico",
|
|
354
|
+
"apps/@project.name@/src/assets",
|
|
355
|
+
{
|
|
356
|
+
"glob": "**/*",
|
|
357
|
+
"input": "node_modules/@eui/core/assets/",
|
|
358
|
+
"output": "./assets"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"styles": [
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
"configurations": {
|
|
365
|
+
"production": {
|
|
366
|
+
"fileReplacements": [
|
|
367
|
+
{
|
|
368
|
+
"replace": "apps/@project.name@/src/_generated/environments/environment.ts",
|
|
369
|
+
"with": "apps/@project.name@/src/_generated/environments/environment.prod.ts"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"optimization": false,
|
|
373
|
+
"outputHashing": "all",
|
|
374
|
+
"sourceMap": false,
|
|
375
|
+
"namedChunks": true,
|
|
376
|
+
"aot": true,
|
|
377
|
+
"extractLicenses": true,
|
|
378
|
+
"vendorChunk": false,
|
|
379
|
+
"buildOptimizer": false,
|
|
380
|
+
"budgets": [
|
|
381
|
+
{
|
|
382
|
+
"type": "initial",
|
|
383
|
+
"maximumWarning": "2mb",
|
|
384
|
+
"maximumError": "6mb"
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
"production-optimized-no-openid": {
|
|
389
|
+
"fileReplacements": [
|
|
390
|
+
{
|
|
391
|
+
"replace": "apps/@project.name@/src/_generated/environments/environment.ts",
|
|
392
|
+
"with": "apps/@project.name@/src/_generated/environments/environment.prod.ts"
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"optimization": {
|
|
396
|
+
"scripts": true,
|
|
397
|
+
"styles": {
|
|
398
|
+
"minify": false,
|
|
399
|
+
"inlineCritical": true
|
|
400
|
+
},
|
|
401
|
+
"fonts": true
|
|
402
|
+
},
|
|
403
|
+
"outputHashing": "all",
|
|
404
|
+
"sourceMap": false,
|
|
405
|
+
"namedChunks": true,
|
|
406
|
+
"aot": true,
|
|
407
|
+
"extractLicenses": true,
|
|
408
|
+
"vendorChunk": false,
|
|
409
|
+
"buildOptimizer": true,
|
|
410
|
+
"budgets": [
|
|
411
|
+
{
|
|
412
|
+
"type": "initial",
|
|
413
|
+
"maximumWarning": "2mb",
|
|
414
|
+
"maximumError": "6mb"
|
|
415
|
+
}
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
"development": {
|
|
419
|
+
"buildOptimizer": false,
|
|
420
|
+
"optimization": false,
|
|
421
|
+
"vendorChunk": true,
|
|
422
|
+
"extractLicenses": false,
|
|
423
|
+
"sourceMap": true,
|
|
424
|
+
"namedChunks": true
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"defaultConfiguration": "production"
|
|
428
|
+
},
|
|
429
|
+
"serve": {
|
|
430
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
431
|
+
"options": {
|
|
432
|
+
"browserTarget": "@project.name@:build"
|
|
433
|
+
},
|
|
434
|
+
"configurations": {
|
|
435
|
+
"proxy-mock": {
|
|
436
|
+
"browserTarget": "@project.name@:build",
|
|
437
|
+
"proxyConfig": "apps/@project.name@/proxy-mock.conf.json"
|
|
438
|
+
},
|
|
439
|
+
"production": {
|
|
440
|
+
"browserTarget": "@project.name@:build:production"
|
|
441
|
+
},
|
|
442
|
+
"development": {
|
|
443
|
+
"browserTarget": "@project.name@:build:development"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"defaultConfiguration": "development"
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
329
453
|
const angularProjectDefConfiguration = {
|
|
330
454
|
"fileReplacements": [
|
|
331
455
|
{
|
|
@@ -387,7 +511,7 @@ const angularProjectDefConfigurationOptimized = {
|
|
|
387
511
|
{
|
|
388
512
|
"type": "initial",
|
|
389
513
|
"maximumWarning": "2mb",
|
|
390
|
-
"maximumError": "
|
|
514
|
+
"maximumError": "7mb"
|
|
391
515
|
}
|
|
392
516
|
]
|
|
393
517
|
}
|
|
@@ -422,6 +546,58 @@ const angularPackageDef = {
|
|
|
422
546
|
}
|
|
423
547
|
};
|
|
424
548
|
|
|
549
|
+
const angularPackageSubEntryDef = {
|
|
550
|
+
"root": "packages/eui/packages/components/@subEntry.path@",
|
|
551
|
+
"sourceRoot": "packages/eui/packages/components/@subEntry.path@",
|
|
552
|
+
"projectType": "library",
|
|
553
|
+
"prefix": "lib",
|
|
554
|
+
"architect": {
|
|
555
|
+
"build": {
|
|
556
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
557
|
+
"options": {
|
|
558
|
+
"tsConfig": "packages/eui/packages/components/tsconfig.lib.json",
|
|
559
|
+
"project": "packages/eui/packages/components/@subEntry.path@/package.json"
|
|
560
|
+
},
|
|
561
|
+
"configurations": {
|
|
562
|
+
"production": {
|
|
563
|
+
"tsConfig": "packages/eui/packages/components/tsconfig.lib.json"
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
const angularPackageDefV13 = {
|
|
572
|
+
"root": "@path@/@module.name@",
|
|
573
|
+
"sourceRoot": "@path@/@module.name@@srcRoot@",
|
|
574
|
+
"projectType": "library",
|
|
575
|
+
"prefix": "lib",
|
|
576
|
+
"architect": {
|
|
577
|
+
"build": {
|
|
578
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
579
|
+
"options": {
|
|
580
|
+
"tsConfig": "@path@/@module.name@/tsconfig.lib.json",
|
|
581
|
+
"project": "@path@/@module.name@/ng-package.json"
|
|
582
|
+
},
|
|
583
|
+
"configurations": {
|
|
584
|
+
"production": {
|
|
585
|
+
"tsConfig": "@path@/@module.name@/tsconfig.lib.prod.json"
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"test": {
|
|
590
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
591
|
+
"options": {
|
|
592
|
+
"main": "@path@/@module.name@@srcRoot@@srcRootTesting@/test.ts",
|
|
593
|
+
"tsConfig": "@path@/@module.name@/tsconfig.spec.json",
|
|
594
|
+
"karmaConfig": "@path@/@module.name@/karma.conf.js"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
|
|
425
601
|
const angularElementProjectDef = {
|
|
426
602
|
"root": "@module.name@/",
|
|
427
603
|
"sourceRoot": "@module.name@/src",
|
|
@@ -560,11 +736,40 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
|
560
736
|
pathBase = 'packages/' + pkg.parentPkg + '/packages';
|
|
561
737
|
}
|
|
562
738
|
|
|
563
|
-
|
|
739
|
+
let projectDef = JSON.stringify(angularPackageDef);
|
|
740
|
+
|
|
741
|
+
if (pkg.build && pkg.build.euiVersion === '13.x') {
|
|
742
|
+
projectDef = JSON.stringify(angularPackageDefV13);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
let srcRoot = '/src', srcRootTesting = '';
|
|
746
|
+
if (pkg.build && typeof pkg.build.srcRootDefault === 'boolean' && pkg.build.srcRootDefault === false) {
|
|
747
|
+
srcRoot = '';
|
|
748
|
+
srcRootTesting = '/testing'
|
|
749
|
+
}
|
|
750
|
+
|
|
564
751
|
const replaceModule = tools.replaceAll(projectDef, '@module.name@', pkg.folder || pkg.name);
|
|
565
752
|
const replacePath = tools.replaceAll(replaceModule, '@path@', pathBase);
|
|
753
|
+
const replaceSrcRoot = tools.replaceAll(replacePath, '@srcRoot@', srcRoot);
|
|
754
|
+
const replaceSrcRootTesting = tools.replaceAll(replaceSrcRoot, '@srcRootTesting@', srcRootTesting);
|
|
755
|
+
|
|
756
|
+
jsonFile['projects'][pkg.name] = JSON.parse(replaceSrcRootTesting);
|
|
757
|
+
|
|
758
|
+
tools.writeJsonFileSync(file, jsonFile);
|
|
759
|
+
}
|
|
566
760
|
|
|
567
|
-
|
|
761
|
+
|
|
762
|
+
module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath) => {
|
|
763
|
+
const file = path.join(process.cwd(), 'angular.json');
|
|
764
|
+
const jsonFile = require(file);
|
|
765
|
+
|
|
766
|
+
let projectDef = JSON.stringify(angularPackageSubEntryDef);
|
|
767
|
+
|
|
768
|
+
const replacePath = tools.replaceAll(projectDef, '@subEntry.path@', subEntryPath);
|
|
769
|
+
|
|
770
|
+
jsonFile['projects'][subEntryName] = JSON.parse(replacePath);
|
|
771
|
+
|
|
772
|
+
console.log(jsonFile['projects'][subEntryName]);
|
|
568
773
|
|
|
569
774
|
tools.writeJsonFileSync(file, jsonFile);
|
|
570
775
|
}
|
|
@@ -626,7 +831,12 @@ module.exports.registerAngularProjectDef = (project, build = false) => {
|
|
|
626
831
|
tools.logInfo('Processing angular config...');
|
|
627
832
|
let projectDef;
|
|
628
833
|
if (project.csdrFullSkeleton) {
|
|
629
|
-
|
|
834
|
+
if (project.build && project.build.euiVersion === '13.x') {
|
|
835
|
+
projectDef = JSON.stringify(angularProjectDefFullSkeletonV13);
|
|
836
|
+
} else {
|
|
837
|
+
projectDef = JSON.stringify(angularProjectDefFullSkeleton);
|
|
838
|
+
}
|
|
839
|
+
|
|
630
840
|
} else {
|
|
631
841
|
projectDef = JSON.stringify(angularProjectDef);
|
|
632
842
|
}
|
|
@@ -20,6 +20,14 @@ module.exports.getCsdrConfig = (full = true) => {
|
|
|
20
20
|
|
|
21
21
|
Object.keys(appsConfig).forEach((p) => {
|
|
22
22
|
config.projects[p] = appsConfig[p];
|
|
23
|
+
|
|
24
|
+
// checking if package has config override in its own folder
|
|
25
|
+
const prjCsdrConfig = path.join(process.cwd(), 'apps', p, '.csdr-config.json');
|
|
26
|
+
|
|
27
|
+
if (tools.isFileExists(prjCsdrConfig)) {
|
|
28
|
+
const prjCsdrConfigJson = require(prjCsdrConfig);
|
|
29
|
+
config.projects[p] = prjCsdrConfigJson;
|
|
30
|
+
}
|
|
23
31
|
})
|
|
24
32
|
|
|
25
33
|
Object.keys(packagesConfig).forEach((p) => {
|
|
@@ -96,6 +104,14 @@ const getGeneratedConfig = (euircBaseFile) => {
|
|
|
96
104
|
// remapping projects against csdr projects config
|
|
97
105
|
configContent.projects.forEach((p) => {
|
|
98
106
|
genConfig.projects[p] = globalConfig.projects[p];
|
|
107
|
+
|
|
108
|
+
// checking if project has config override in its own folder
|
|
109
|
+
const prjCsdrConfig = path.join(process.cwd(), 'apps', p, '.csdr-config.json');
|
|
110
|
+
|
|
111
|
+
if (tools.isFileExists(prjCsdrConfig)) {
|
|
112
|
+
const prjCsdrConfigJson = require(prjCsdrConfig);
|
|
113
|
+
genConfig.projects[p] = prjCsdrConfigJson;
|
|
114
|
+
}
|
|
99
115
|
})
|
|
100
116
|
|
|
101
117
|
// remapping projects against csdr packages config
|
|
@@ -199,7 +199,9 @@ const getLocalPackagesDeps = () => {
|
|
|
199
199
|
const pdeps = Object.keys(pkgDeps)
|
|
200
200
|
.reduce((acc, k) => {
|
|
201
201
|
if (k.indexOf('@eui') !== -1 ) {
|
|
202
|
-
if (k.indexOf('@eui/ecl') !== -1
|
|
202
|
+
if (k.indexOf('@eui/ecl') !== -1 ||
|
|
203
|
+
k.indexOf('@eui/styles-base') !== -1
|
|
204
|
+
) {
|
|
203
205
|
acc[k] = pkgDeps[k];
|
|
204
206
|
}
|
|
205
207
|
} else {
|
|
@@ -215,17 +217,33 @@ const getLocalPackagesDeps = () => {
|
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
|
|
220
|
+
// const getLocalPackageCompositeDeps = (pkg) => {
|
|
221
|
+
// let pkgJsonFile;
|
|
222
|
+
|
|
223
|
+
// if (pkg.parent) {
|
|
224
|
+
// return {};
|
|
225
|
+
// } else {
|
|
226
|
+
// if (pkg.child) {
|
|
227
|
+
// pkgJsonFile = path.join(process.cwd(), 'packages', pkg.parentPkg, 'packages', pkg.folder || pkg.name, 'dependencies-composite.json');
|
|
228
|
+
// } else {
|
|
229
|
+
// pkgJsonFile = path.join(process.cwd(), 'packages', pkg.name, 'dependencies-composite.json');
|
|
230
|
+
// }
|
|
231
|
+
// }
|
|
232
|
+
|
|
233
|
+
// return tools.getJsonFileContent(pkgJsonFile) || {};
|
|
234
|
+
// }
|
|
235
|
+
|
|
218
236
|
const getLocalPackageCompositeDeps = (pkg) => {
|
|
219
237
|
let pkgJsonFile;
|
|
220
238
|
|
|
221
|
-
if (pkg.
|
|
222
|
-
|
|
239
|
+
if (pkg.child) {
|
|
240
|
+
pkgJsonFile = path.join(process.cwd(), 'packages', pkg.parentPkg, 'packages', pkg.folder || pkg.name, 'dependencies-composite.json');
|
|
223
241
|
} else {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
242
|
+
pkgJsonFile = path.join(process.cwd(), 'packages', pkg.name, 'dependencies-composite.json');
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (tools.isFileExists(pkgJsonFile)) {
|
|
246
|
+
console.log(`found ${pkgJsonFile}, parsing...`);
|
|
229
247
|
}
|
|
230
248
|
|
|
231
249
|
return tools.getJsonFileContent(pkgJsonFile) || {};
|