@eui/tools 5.2.8 → 5.2.11
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 +27 -0
- package/bin/scripts/csdr-sync.js +1 -1
- package/docs/01-intro.md +78 -0
- package/package.json +1 -1
- package/scripts/csdr/cli/package.js +54 -2
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/remote-sources/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-composite.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui13/dependencies-composite.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui14/dependencies-composite.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/{module.module.ts → module.ts} +2 -2
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/{module-routing.module.ts → routing.module.ts} +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +5 -9
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-ACC.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-DLT.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-INT.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-PROD.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-TRN.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +2 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +2 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui13/dependencies-composite.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui14/dependencies-composite.json +6 -0
- package/scripts/csdr/config/global.js +14 -2
- package/scripts/csdr/init/resources/13.x/yarn.lock +4508 -0
- package/scripts/index.js +147 -0
- package/scripts/index.test.js +7 -0
- package/scripts/utils/build/app/build-app-utils.js +1 -1
- package/global.test.js +0 -152
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.2.
|
|
1
|
+
5.2.11
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.2.11 (2022-05-21)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* added v13 and v14 package skeletons - adapted for envTarget remote skeleton - doc - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([5324dd32](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5324dd32a669368f438f54ddeacaf65958b6ec83))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.2.10 (2022-05-19)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* force updated yarn.lock - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([f9cfaefe](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/f9cfaefe906201751caa33c29752011c65bb2a60))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.2.9 (2022-05-19)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted optimized build to only TRN and PROD for MWP - forced yarn.lock in v13 builds for eUI build failure - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([730cb1a2](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/730cb1a2e2fde1677f2f03605e5a0255f9f75654))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.2.8 (2022-05-16)
|
|
2
29
|
|
|
3
30
|
##### Bug Fixes
|
package/bin/scripts/csdr-sync.js
CHANGED
package/docs/01-intro.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
author: Roels G - DIGIT.B.3
|
|
2
|
+
last reviesion:
|
|
3
|
+
|
|
4
|
+
date | who ? | what ?
|
|
5
|
+
--- | --- | ---
|
|
6
|
+
2022-05-18 | roelsgr | document creation
|
|
7
|
+
<hr>
|
|
8
|
+
<br><br>
|
|
9
|
+
|
|
10
|
+
# eUI tools - part 1 - Introduction
|
|
11
|
+
|
|
12
|
+
## History
|
|
13
|
+
|
|
14
|
+
The initial main purpose of eUI tools was to have a comitted pipeline and avoid duplication of code in Bamboo, yes at that time there wasn't any Bamboo specs, which would have facilited the approach, if we wanted to have the pipeline as compiled code... which makes it not so handy for maintenance and "live" testing.
|
|
15
|
+
|
|
16
|
+
But nevertheless, eUI tools was there, at first it was really a bunch of promises scripts triggered by a bin files like npm library allowing obfuscation of pipeline flow : assemble/build/set version/publish.
|
|
17
|
+
|
|
18
|
+
For sure like all things, it started simple and got more complicated, but it's in constant refactoring, basically things become unreadable time for a refactoring ;)
|
|
19
|
+
|
|
20
|
+
## Challenges ?
|
|
21
|
+
|
|
22
|
+
Probably the most crucial one to tackle : eUI tools should use itself to build itself, sounds like recursive stuffs, but that's one of the main advantage of javascript maybe here.
|
|
23
|
+
|
|
24
|
+
This with the help of the CSDR pipeline for sure, executed through job/stage in gitlab.
|
|
25
|
+
|
|
26
|
+
Why ? because the pipeline when building a package / npm / backend etc... is split in 2 main parts :
|
|
27
|
+
- the "init" phase: initialize / clone / mount the necessary repository(ies) instructed by the build param, basically a "pkg" package name and in CSDR it's always the repository name, easy to spot / easy and a few other arguments like : git "branch", associated "project", and some other deployment parameters.
|
|
28
|
+
- the "release" phase : where the build / test / versioning / metadata entries / publication are done.
|
|
29
|
+
|
|
30
|
+
The fact that the init is decoupled from the release part makes it easy, the init is almost always static from version to version, so once building eUI tools, it initializes itself, clone its last version in the repository that has been pushed and after that symlinks itself on its node_modules installation, making at that time build itself as all the modules called from the release phase are now the ones of the latest commited version cloned during the init phase before.
|
|
31
|
+
|
|
32
|
+
What's the benefits ? allow new stages in the pipeline to be developed and used directly by the eUI tools themselves, this way, if there's a build failure at that level for itself, it's not shipped so it does not have any impact on others using it (basically all CSDR developers / eUI but it's safer there as the ultimate latest version of the package is not pushed constantly : only when eUI new version is released)
|
|
33
|
+
|
|
34
|
+
Another challenge here was to use the exact same build tools / installation scripts / synchronization script both for local development
|
|
35
|
+
and on the CI side. So when commands are executed locally, they are battle tested when it comes to execute them too on the CI.
|
|
36
|
+
This makes it handy for developers building locally their packages first to have the exact same result as they would have when the pipeline is executing to build and publish their code.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Why this exists ? bunch of bash script can do the same after all
|
|
40
|
+
|
|
41
|
+
Sure they can, but needs probably need to be a Unix expert to fully understand at first sight what's their purpose, in this agglomerated bunch of cryptic abbreviations and pipes ;)
|
|
42
|
+
|
|
43
|
+
So Javascript as the most stupid and simple language was used for the first early version, quickly became unreadable too because of its verbosity at some point for executing internal functions, promises etc...
|
|
44
|
+
|
|
45
|
+
So let's enter the black box ;)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## Where to start ?
|
|
49
|
+
|
|
50
|
+
As it's a bin bash execution javascript library, it all starts in the **/bin** folder.
|
|
51
|
+
|
|
52
|
+
Over each bin sub-scripts (launched by eui-script SCRIPT_NAME from any eUI app root package.json).
|
|
53
|
+
|
|
54
|
+
**eui-scripts.js** is the entry point file is the "bin" files defined in the package.json. This is used for scripts execution, and handle command line parameters so :
|
|
55
|
+
```
|
|
56
|
+
eui-scripts SCRIPT_NAME [params]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Called scripts are located in **/scripts**, and basically their structure is almost always the same, if we take for example the most commonly used one : *sync*
|
|
60
|
+
```
|
|
61
|
+
const { syncUtils } = require('../../scripts');
|
|
62
|
+
|
|
63
|
+
Promise.resolve()
|
|
64
|
+
.then(() => {
|
|
65
|
+
return syncUtils.sync();
|
|
66
|
+
})
|
|
67
|
+
.catch((e) => {
|
|
68
|
+
console.log(e);
|
|
69
|
+
process.exit(1);
|
|
70
|
+
})
|
|
71
|
+
```
|
|
72
|
+
Most of the times it contains :
|
|
73
|
+
|
|
74
|
+
- **core** script import: here *syncUtils*,
|
|
75
|
+
- **promise wrapper**, for simplicity of the code (ok more verbose) everything is a promise in the core scripts.
|
|
76
|
+
- **catch** exiting the current process and displaying the exception handled or undhandled when excuting the core script.
|
|
77
|
+
|
|
78
|
+
|
package/package.json
CHANGED
|
@@ -14,8 +14,12 @@ const TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
|
|
|
14
14
|
const SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
|
|
15
15
|
const FRONTEND_SKELETON_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend');
|
|
16
16
|
const FRONTEND_SKELETON_EUI10_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui10');
|
|
17
|
+
const FRONTEND_SKELETON_EUI13_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui13');
|
|
18
|
+
const FRONTEND_SKELETON_EUI14_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui14');
|
|
17
19
|
const FRONTEND_SKELETON_REMOTE_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote');
|
|
18
20
|
const FRONTEND_SKELETON_REMOTE_EUI10_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui10');
|
|
21
|
+
const FRONTEND_SKELETON_REMOTE_EUI13_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui13');
|
|
22
|
+
const FRONTEND_SKELETON_REMOTE_EUI14_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui14');
|
|
19
23
|
const FRONTEND_OPTION_ROUTE_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-option-route');
|
|
20
24
|
const BACKEND_SKELETON_PATH = path.join(SKELETONS_ROOT_PATH, 'backend');
|
|
21
25
|
|
|
@@ -32,10 +36,13 @@ const defaultConfig = {
|
|
|
32
36
|
},
|
|
33
37
|
pkgFrontendVersion: {
|
|
34
38
|
DEFAULT: 'eui7',
|
|
35
|
-
EUI10: 'eui10'
|
|
39
|
+
EUI10: 'eui10',
|
|
40
|
+
EUI13: 'eui13',
|
|
41
|
+
EUI14: 'eui14',
|
|
36
42
|
},
|
|
37
43
|
isRouteModule: true,
|
|
38
44
|
isCsdrRepo: true,
|
|
45
|
+
isEnvTargetRemote: true,
|
|
39
46
|
externalRepoName: null,
|
|
40
47
|
pkgGroupId: 'eu.europa.ec.cc'
|
|
41
48
|
};
|
|
@@ -78,6 +85,9 @@ const prompt = () => {
|
|
|
78
85
|
{ name: 'Remote element micro-frontend', value: defaultConfig.pkgFrontendType.REMOTE },
|
|
79
86
|
],
|
|
80
87
|
default: defaultConfig.pkgFrontendType.DEFAULT,
|
|
88
|
+
when: function (answers) {
|
|
89
|
+
return (answers.pkgType === defaultConfig.pkgType.FRONTEND);
|
|
90
|
+
},
|
|
81
91
|
validate: function (value) {
|
|
82
92
|
if (value.length) {
|
|
83
93
|
return true;
|
|
@@ -91,6 +101,8 @@ const prompt = () => {
|
|
|
91
101
|
choices: [
|
|
92
102
|
{ name: 'v7', value: defaultConfig.pkgFrontendVersion.DEFAULT },
|
|
93
103
|
{ name: 'v10', value: defaultConfig.pkgFrontendVersion.EUI10 },
|
|
104
|
+
{ name: 'v13', value: defaultConfig.pkgFrontendVersion.EUI13 },
|
|
105
|
+
{ name: 'v14', value: defaultConfig.pkgFrontendVersion.EUI14 },
|
|
94
106
|
],
|
|
95
107
|
default: defaultConfig.pkgFrontendType.DEFAULT,
|
|
96
108
|
when: function (answers) {
|
|
@@ -126,6 +138,19 @@ const prompt = () => {
|
|
|
126
138
|
);
|
|
127
139
|
}
|
|
128
140
|
},
|
|
141
|
+
{
|
|
142
|
+
name: 'isEnvTargetRemote',
|
|
143
|
+
type: 'confirm',
|
|
144
|
+
message: 'Is this an envTarget/à la carte remote ? (root package needs to be created first with same scope/name)',
|
|
145
|
+
default: defaultConfig.isEnvTargetRemote,
|
|
146
|
+
when: function (answers) {
|
|
147
|
+
return (
|
|
148
|
+
answers.pkgType === defaultConfig.pkgType.FRONTEND &&
|
|
149
|
+
answers.pkgFrontendType === defaultConfig.pkgFrontendType.REMOTE &&
|
|
150
|
+
answers.pkgFrontendVersion !== defaultConfig.pkgFrontendVersion.DEFAULT
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
},
|
|
129
154
|
{
|
|
130
155
|
name: 'isCsdrRepo',
|
|
131
156
|
type: 'confirm',
|
|
@@ -168,6 +193,14 @@ const buildFrontend = (name, scope, frontendType, frontendVersion, isRouteModule
|
|
|
168
193
|
fullName += '-eui10-remote-el-ui';
|
|
169
194
|
npmPkgName = `${scope}/${name}-eui10-remote-el`;
|
|
170
195
|
|
|
196
|
+
} else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI13) {
|
|
197
|
+
fullName += '-eui13-remote-el-ui';
|
|
198
|
+
npmPkgName = `${scope}/${name}-eui13-remote-el`;
|
|
199
|
+
|
|
200
|
+
} else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI14) {
|
|
201
|
+
fullName += '-eui14-remote-el-ui';
|
|
202
|
+
npmPkgName = `${scope}/${name}-eui14-remote-el`;
|
|
203
|
+
|
|
171
204
|
} else {
|
|
172
205
|
fullName += '-remote-el-ui';
|
|
173
206
|
npmPkgName = `${scope}/${name}-remote-el`;
|
|
@@ -206,12 +239,31 @@ const buildFrontend = (name, scope, frontendType, frontendVersion, isRouteModule
|
|
|
206
239
|
if (frontendType === defaultConfig.pkgFrontendType.REMOTE) {
|
|
207
240
|
if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI10) {
|
|
208
241
|
return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
|
|
242
|
+
|
|
243
|
+
} else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI13) {
|
|
244
|
+
tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
|
|
245
|
+
return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI13_PATH, targetPath, true);
|
|
246
|
+
|
|
247
|
+
} else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI14) {
|
|
248
|
+
tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
|
|
249
|
+
return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI14_PATH, targetPath, true);
|
|
250
|
+
|
|
209
251
|
} else {
|
|
210
252
|
return tools.copydir(FRONTEND_SKELETON_REMOTE_PATH, targetPath, true);
|
|
211
253
|
}
|
|
254
|
+
|
|
212
255
|
} else {
|
|
213
256
|
if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI10) {
|
|
214
257
|
return tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
|
|
258
|
+
|
|
259
|
+
} else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI13) {
|
|
260
|
+
tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
|
|
261
|
+
return tools.copydir(FRONTEND_SKELETON_EUI13_PATH, targetPath, true);
|
|
262
|
+
|
|
263
|
+
} else if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI14) {
|
|
264
|
+
tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
|
|
265
|
+
return tools.copydir(FRONTEND_SKELETON_EUI14_PATH, targetPath, true);
|
|
266
|
+
|
|
215
267
|
} else {
|
|
216
268
|
return tools.copydir(FRONTEND_SKELETON_PATH, targetPath, true);
|
|
217
269
|
}
|
|
@@ -267,7 +319,7 @@ const buildFrontend = (name, scope, frontendType, frontendVersion, isRouteModule
|
|
|
267
319
|
return configUtils.angular.registerModulePaths(pkg);
|
|
268
320
|
})
|
|
269
321
|
.then(() => {
|
|
270
|
-
return configUtils.global.registerCsdrPackage(pkg, frontendType === defaultConfig.pkgFrontendType.REMOTE);
|
|
322
|
+
return configUtils.global.registerCsdrPackage(pkg, frontendType === defaultConfig.pkgFrontendType.REMOTE, scope, name);
|
|
271
323
|
})
|
|
272
324
|
|
|
273
325
|
.then(() => {
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
|
|
3
|
-
import { RoutingModule } from './
|
|
3
|
+
import { RoutingModule } from './routing.module';
|
|
4
4
|
|
|
5
5
|
import { Cmp1Component } from './components/cmp1/cmp1.component';
|
|
6
6
|
|
|
@@ -14,4 +14,4 @@ import { Cmp1Component } from './components/cmp1/cmp1.component';
|
|
|
14
14
|
exports: [
|
|
15
15
|
],
|
|
16
16
|
})
|
|
17
|
-
export class
|
|
17
|
+
export class CommonModule { }
|
|
File without changes
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
last 2 versions
|
|
1
|
+
last 1 Chrome version
|
|
2
|
+
last 1 Firefox version
|
|
3
|
+
last 2 Edge major versions
|
|
4
|
+
last 2 Safari major versions
|
|
5
|
+
last 2 iOS major versions
|
|
7
6
|
Firefox ESR
|
|
8
|
-
not dead
|
|
9
|
-
IE 9-11
|
|
10
|
-
|
|
@@ -46,8 +46,7 @@ import { CustomSerializer } from './reducers/custom-route-serializer';
|
|
|
46
46
|
import { environment } from '../environments/environment';
|
|
47
47
|
import { appConfig } from '../config';
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
// import { TaskMgrCommonModule } from '@cc/task-manager';
|
|
49
|
+
import { Module as RootPackageCommonModule } from '@module.scope@/@module.name@';
|
|
51
50
|
import {
|
|
52
51
|
ELEMENT_ROUTER_TOKEN,
|
|
53
52
|
I18N_SERVICE_HOST_TOKEN,
|
|
@@ -87,8 +86,7 @@ export function openidConnectInterceptorFactory(config) {
|
|
|
87
86
|
EuiButtonModule,
|
|
88
87
|
EuiLabelModule,
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
// TaskMgrCommonModule,
|
|
89
|
+
RootPackageCommonModule,
|
|
92
90
|
RoutingModule,
|
|
93
91
|
],
|
|
94
92
|
declarations: [
|
|
@@ -5,8 +5,7 @@ import { filter, distinctUntilChanged } from 'rxjs/operators';
|
|
|
5
5
|
|
|
6
6
|
import { CCRoute, ELEMENT_ROUTER_TOKEN, IRouterService } from '@csdr/integration';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
// import { routes } from '@cc/task-manager';
|
|
8
|
+
import { routes } from '@module.scope@/@module.name@';
|
|
10
9
|
import { appConfig } from '../config/index';
|
|
11
10
|
import { FallbackComponent } from './fallback.component';
|
|
12
11
|
import { ModuleComponent } from './module.component';
|
|
@@ -15,8 +14,7 @@ const prefixedRoutes: Routes = [
|
|
|
15
14
|
{ path: '', component: ModuleComponent },
|
|
16
15
|
{
|
|
17
16
|
path: appConfig.global.baseUrl,
|
|
18
|
-
|
|
19
|
-
// children: routes,
|
|
17
|
+
children: routes,
|
|
20
18
|
},
|
|
21
19
|
{ path: '**', component: FallbackComponent },
|
|
22
20
|
];
|
|
@@ -457,7 +457,7 @@ module.exports.registerCsdrProject = (name, isFullSkeleton) => {
|
|
|
457
457
|
|
|
458
458
|
// Register newly created package
|
|
459
459
|
|
|
460
|
-
module.exports.registerCsdrPackage = (pkg, isRemote) => {
|
|
460
|
+
module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName) => {
|
|
461
461
|
|
|
462
462
|
const csdrConfigPackage = {
|
|
463
463
|
"name": "@module.full.name@",
|
|
@@ -484,10 +484,20 @@ module.exports.registerCsdrPackage = (pkg, isRemote) => {
|
|
|
484
484
|
],
|
|
485
485
|
"build": {
|
|
486
486
|
"compiledTranslations": true,
|
|
487
|
-
"translationScopes": "eui,csdr,cc"
|
|
487
|
+
"translationScopes": "eui,csdr,cc,mywp",
|
|
488
|
+
"skipLint": true,
|
|
489
|
+
"skipTest": true,
|
|
490
|
+
"envTargetActive": true
|
|
491
|
+
},
|
|
492
|
+
"release": {
|
|
493
|
+
"team": "cc-ui-rm"
|
|
488
494
|
},
|
|
489
495
|
"slack": {
|
|
490
496
|
"channel": "csdr-timeline-mwp-remotes-cc"
|
|
497
|
+
},
|
|
498
|
+
"externalSources": {
|
|
499
|
+
"npmPkg": "@module.rootPkg.scope@/@module.rootPkg.name@",
|
|
500
|
+
"folder": "assets/remote-sources"
|
|
491
501
|
}
|
|
492
502
|
}
|
|
493
503
|
|
|
@@ -504,6 +514,8 @@ module.exports.registerCsdrPackage = (pkg, isRemote) => {
|
|
|
504
514
|
let replaceModule = tools.replaceAll(packageDef, '@module.full.name@', pkg.name);
|
|
505
515
|
replaceModule = tools.replaceAll(replaceModule, '@module.repo.name@', pkg.repoName);
|
|
506
516
|
replaceModule = tools.replaceAll(replaceModule, '@module.npmPkg.name@', pkg.npmPkgName);
|
|
517
|
+
replaceModule = tools.replaceAll(replaceModule, '@module.rootPkg.scope@', rootPkgScope);
|
|
518
|
+
replaceModule = tools.replaceAll(replaceModule, '@module.rootPkg.name@', rootPkgName);
|
|
507
519
|
|
|
508
520
|
let file = path.join(process.cwd(), '.csdr', '.euirc-csdr-packages.json');
|
|
509
521
|
let jsonFile = require(file);
|