@eui/tools 6.21.98 → 6.21.99

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.
Files changed (31) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +9 -0
  3. package/package.json +1 -1
  4. package/scripts/app/public/package-init.html +23 -11
  5. package/scripts/app/public/package-init.js +3 -0
  6. package/scripts/csdr/cli/constants.js +3 -1
  7. package/scripts/csdr/cli/package-build-frontend.js +40 -43
  8. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/.eslintrc.json +43 -0
  9. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/.gitlab-ci.yml +4 -0
  10. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/assets/i18n/en.json +3 -0
  11. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/assets/i18n/fr.json +3 -0
  12. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/dependencies-base.json +2 -0
  13. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/dependencies-composite.json +4 -0
  14. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/gitignore_TO_REPLACE +65 -0
  15. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/karma.conf.js +7 -0
  16. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/ng-package.json +7 -0
  17. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/package.json +4 -0
  18. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/src/dummy.spec.ts.TO_REPLACE +5 -0
  19. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/src/index.ts +1 -0
  20. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/src/lib/components/main.component.html +10 -0
  21. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/src/lib/components/main.component.ts +16 -0
  22. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/src/lib/module.ts +26 -0
  23. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/src/test.ts.TO_REPLACE +22 -0
  24. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/tsconfig.lib.json +33 -0
  25. package/scripts/csdr/cli/skeletons/package/frontend/19.x/default-sdlc/tsconfig.spec.json +17 -0
  26. package/scripts/csdr/cli/skeletons/virtual-remote/19.x-sdlc/angular-config.json +2 -0
  27. package/scripts/csdr/cli/skeletons/virtual-remote/19.x-sdlc/dependencies.json +24 -0
  28. package/scripts/csdr/cli/skeletons/virtual-remote/remote-trigger/.gitlab-ci.yml +16 -0
  29. package/scripts/csdr/cli/skeletons/virtual-remote/remote-trigger/package.json +5 -0
  30. package/scripts/csdr/config/register.js +38 -0
  31. package/scripts/utils/migrate/skeleton/remote-trigger/.euirc-config.json +0 -5
@@ -1 +1 @@
1
- 6.21.98
1
+ 6.21.99
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.21.99 (2025-07-08)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted package creation script for SDLC and v19 frontend package only - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([b1ee94c8](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b1ee94c83987187a793658ec3b2523a3ce27174b))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.21.98 (2025-07-08)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.98",
3
+ "version": "6.21.99",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -22,9 +22,10 @@
22
22
  <div class="row mt-3 mb-3">
23
23
  <label class="col-sm-4 col-form-label d-flex justify-content-end">Package type</label>
24
24
  <div class="col-sm-8">
25
- <select class="form-select" v-model="params.pkgType">
25
+ <label class="col-sm-4 col-form-label d-flex"><strong>{{ params.pkgType }}</strong></label>
26
+ <!-- <select class="form-select" v-model="params.pkgType">
26
27
  <option v-for="pkgType in options.pkgTypes" :value="pkgType.value">{{ pkgType.label }}</option>
27
- </select>
28
+ </select> -->
28
29
  </div>
29
30
  </div>
30
31
 
@@ -65,7 +66,7 @@
65
66
  </div>
66
67
 
67
68
  <div v-if="params.pkgFrontendType === 'default'">
68
- <div class="row mt-3 mb-3">
69
+ <!-- <div class="row mt-3 mb-3">
69
70
  <div class="col-sm-4">
70
71
  <label class="form-check-label d-flex justify-content-end"> CSDR repository ? </label>
71
72
  </div>
@@ -75,8 +76,18 @@
75
76
  </div>
76
77
  </div>
77
78
  </div>
79
+ <div class="row mt-3 mb-3">
80
+ <div class="col-sm-4">
81
+ <label class="form-check-label d-flex justify-content-end"> SDLC Gitlab repository ? </label>
82
+ </div>
83
+ <div class="col-sm-8">
84
+ <div class="form-check form-switch">
85
+ <input class="form-check-input" type="checkbox" v-model="params.sdlc" />
86
+ </div>
87
+ </div>
88
+ </div> -->
78
89
 
79
- <div class="row mt-3 mb-3" v-if="!params.csdrRepo">
90
+ <!-- <div class="row mt-3 mb-3" v-if="!params.csdrRepo">
80
91
  <label class="col-sm-4 col-form-label d-flex justify-content-end">External repository project</label>
81
92
  <div class="col-sm-8">
82
93
  <input
@@ -85,9 +96,9 @@
85
96
  placeholder="Indicate the CITnet project key where the repository belongs to"
86
97
  v-model="params.externalRepoName" />
87
98
  </div>
88
- </div>
99
+ </div> -->
89
100
 
90
- <div class="row mt-3 mb-3">
101
+ <!-- <div class="row mt-3 mb-3">
91
102
  <div class="col-sm-4">
92
103
  <label class="form-check-label d-flex justify-content-end"> Participant package type ?</label>
93
104
  </div>
@@ -96,7 +107,7 @@
96
107
  <input class="form-check-input" type="checkbox" v-model="params.pkgFrontendParticipant" />
97
108
  </div>
98
109
  </div>
99
- </div>
110
+ </div> -->
100
111
  <!-- <div class="row mt-3 mb-3">
101
112
  <div class="col-sm-4">
102
113
  <label class="form-check-label d-flex justify-content-end"> Participant package type - NgRx (advanced) ?</label>
@@ -205,7 +216,8 @@
205
216
  <div class="alert alert-danger" v-if="!isParamsValid">Some field are either empty or invalid</div>
206
217
 
207
218
  <div class="alert alert-info mt-2">
208
- <div v-if="params.pkgFrontendType === 'default' || params.pkgType === 'backend'">
219
+ Contact MWP Core team for procedure (updated to gitlab SDLC)
220
+ <!-- <div v-if="params.pkgFrontendType === 'default' || params.pkgType === 'backend'">
209
221
  <strong>Setup procedure for :<span class="text-primary"> UI or BACKEND </span> package type</strong>
210
222
  <ul>
211
223
  <li>Ensure first that the root repository is correctly up-to-date, by pulling it</li>
@@ -227,9 +239,9 @@
227
239
  succeeded
228
240
  </li>
229
241
  </ul>
230
- </div>
242
+ </div> -->
231
243
 
232
- <div v-if="params.pkgFrontendType === 'remote' && params.pkgType !== 'backend'">
244
+ <!-- <div v-if="params.pkgFrontendType === 'remote' && params.pkgType !== 'backend'">
233
245
  <strong
234
246
  >Setup procedure for :<span class="text-primary"> REMOTE </span> package type</strong
235
247
  >
@@ -254,7 +266,7 @@
254
266
  participant f.e.)
255
267
  </li>
256
268
  </ul>
257
- </div>
269
+ </div> -->
258
270
  </div>
259
271
 
260
272
  <hr />
@@ -55,6 +55,7 @@ new Vue({
55
55
  rmTeamName: "cc-digit-ui-rm",
56
56
  options: {},
57
57
  },
58
+ sdlc: true
58
59
  };
59
60
  },
60
61
  validateParams(params) {
@@ -128,6 +129,8 @@ new Vue({
128
129
 
129
130
  if (this.params.pkgFrontendType === "default") {
130
131
  params.csdrRepo = this.params.csdrRepo;
132
+ params.sdlc = this.params.sdlc;
133
+
131
134
  if (!params.csdrRepo) {
132
135
  params.externalRepoName = this.params.externalRepoName;
133
136
  }
@@ -6,6 +6,7 @@ module.exports.TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
6
6
  module.exports.TARGET_ROOT_REMOTES_PATH = path.join(process.cwd(), 'remotes');
7
7
  module.exports.SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
8
8
  module.exports.FRONTEND_SKELETON_EUI19_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '19.x', 'default');
9
+ module.exports.FRONTEND_SKELETON_EUI19_SDLC_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '19.x', 'default-sdlc');
9
10
  module.exports.FRONTEND_SKELETON_EUI19_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '19.x', 'participant-default');
10
11
  module.exports.FRONTEND_SKELETON_EUI19_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '19.x', 'participant-ngrx');
11
12
  module.exports.BACKEND_SKELETON_PATH = path.join(this.SKELETONS_ROOT_PATH, 'backend');
@@ -33,5 +34,6 @@ module.exports.DEFAULT_CONFIG = {
33
34
  pkgScope: '@zzz',
34
35
  isCsdrRepo: true,
35
36
  externalRepoName: null,
36
- pkgGroupId: 'eu.europa.ec.cc'
37
+ pkgGroupId: 'eu.europa.ec.cc',
38
+ sdlc: true
37
39
  };
@@ -83,6 +83,10 @@ const generateRemote = (args = constants.DEFAULT_CONFIG) => {
83
83
  }
84
84
  };
85
85
 
86
+ if (args.sdlc) {
87
+ pkg.sdlc = true;
88
+ }
89
+
86
90
  // ADDING CONFIG ENTRY - specific csdr-remotes as of v15+
87
91
  tools.logInfo('Adding CSDR config entry');
88
92
  configUtils.register.registerCsdrPackage(
@@ -108,6 +112,27 @@ const generateRemote = (args = constants.DEFAULT_CONFIG) => {
108
112
 
109
113
  tools.logInfo('Replace sources content in remotes-config target entry');
110
114
  replaceContent(remoteConfigTargetPath, args.pkgName, args.pkgScope, args.fullName);
115
+
116
+
117
+ if (args.sdlc) {
118
+ const newRemoteName = args.fullName.replace('eui19-remote-el-ui', 'remote-eui19');
119
+
120
+ const remoteConfigTargetPathSdlc = path.join(process.cwd(), '.sdlc-config', 'remotes', newRemoteName);
121
+ tools.copy(
122
+ path.join(constants.VIRTUAL_REMOTE_SKELETON_ROOT_PATH, `${args.pkgFrontendVersion}.x-sdlc`),
123
+ remoteConfigTargetPathSdlc
124
+ );
125
+
126
+ tools.logInfo('Replace sources content in remotes-config target entry');
127
+ replaceContent(remoteConfigTargetPathSdlc, args.pkgName, args.pkgScope, newRemoteName);
128
+
129
+ tools.copy(
130
+ path.join(constants.VIRTUAL_REMOTE_SKELETON_ROOT_PATH, 'remote-trigger'),
131
+ path.join(process.cwd(), 'remotes-trigger', newRemoteName)
132
+ );
133
+
134
+ tools.replaceInPath(path.join(process.cwd(), 'remotes-trigger', newRemoteName), '@module.remote.name@', newRemoteName);
135
+ }
111
136
  })
112
137
 
113
138
  // CLEANING REMOTE CURRENT TARGET as this is completetely re-generated by the generateVirtualRemotes() function (same as init)
@@ -146,47 +171,7 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
146
171
  // COPY TO TARGET
147
172
  .then(() => {
148
173
  tools.logInfo('Copying skeleton to target');
149
- if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
150
- if (args.pkgFrontendParticipant) {
151
- if (args.pkgFrontendParticipantNgRx) {
152
- tools.copydir(constants.FRONTEND_SKELETON_EUI15_PARTICIPANT_NGRX_PATH, targetPath, true);
153
- } else {
154
- tools.copydir(constants.FRONTEND_SKELETON_EUI15_PARTICIPANT_DEFAULT_PATH, targetPath, true);
155
- }
156
- } else {
157
- tools.copydir(constants.FRONTEND_SKELETON_EUI15_PATH, targetPath, true);
158
- }
159
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI16) {
160
- if (args.pkgFrontendParticipant) {
161
- if (args.pkgFrontendParticipantNgRx) {
162
- tools.copydir(constants.FRONTEND_SKELETON_EUI16_PARTICIPANT_NGRX_PATH, targetPath, true);
163
- } else {
164
- tools.copydir(constants.FRONTEND_SKELETON_EUI16_PARTICIPANT_DEFAULT_PATH, targetPath, true);
165
- }
166
- } else {
167
- tools.copydir(constants.FRONTEND_SKELETON_EUI16_PATH, targetPath, true);
168
- }
169
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI17) {
170
- if (args.pkgFrontendParticipant) {
171
- if (args.pkgFrontendParticipantNgRx) {
172
- tools.copydir(constants.FRONTEND_SKELETON_EUI17_PARTICIPANT_NGRX_PATH, targetPath, true);
173
- } else {
174
- tools.copydir(constants.FRONTEND_SKELETON_EUI17_PARTICIPANT_DEFAULT_PATH, targetPath, true);
175
- }
176
- } else {
177
- tools.copydir(constants.FRONTEND_SKELETON_EUI17_PATH, targetPath, true);
178
- }
179
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI18) {
180
- if (args.pkgFrontendParticipant) {
181
- if (args.pkgFrontendParticipantNgRx) {
182
- tools.copydir(constants.FRONTEND_SKELETON_EUI18_PARTICIPANT_NGRX_PATH, targetPath, true);
183
- } else {
184
- tools.copydir(constants.FRONTEND_SKELETON_EUI18_PARTICIPANT_DEFAULT_PATH, targetPath, true);
185
- }
186
- } else {
187
- tools.copydir(constants.FRONTEND_SKELETON_EUI18_PATH, targetPath, true);
188
- }
189
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI19) {
174
+ if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI19) {
190
175
  if (args.pkgFrontendParticipant) {
191
176
  if (args.pkgFrontendParticipantNgRx) {
192
177
  tools.copydir(constants.FRONTEND_SKELETON_EUI19_PARTICIPANT_NGRX_PATH, targetPath, true);
@@ -194,7 +179,11 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
194
179
  tools.copydir(constants.FRONTEND_SKELETON_EUI19_PARTICIPANT_DEFAULT_PATH, targetPath, true);
195
180
  }
196
181
  } else {
197
- tools.copydir(constants.FRONTEND_SKELETON_EUI19_PATH, targetPath, true);
182
+ if (args.sdlc) {
183
+ tools.copydir(constants.FRONTEND_SKELETON_EUI19_SDLC_PATH, targetPath, true);
184
+ } else {
185
+ tools.copydir(constants.FRONTEND_SKELETON_EUI19_PATH, targetPath, true);
186
+ }
198
187
  }
199
188
  }
200
189
 
@@ -208,7 +197,7 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
208
197
  // generating default package entries
209
198
  const pkg = {
210
199
  name: args.fullName,
211
- repoName: args.repoName,
200
+ repoName: args.sdlc ? `myworkplace-ui/${args.repoName}` : args.repoName,
212
201
  npmPkgName: args.npmPkgName,
213
202
  paths: {
214
203
  root: targetPath
@@ -216,6 +205,10 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
216
205
  tsConfigFileName: 'tsconfig.lib.json'
217
206
  };
218
207
 
208
+ if (args.sdlc) {
209
+ pkg.sdlc = true;
210
+ }
211
+
219
212
  tools.logInfo('Adding CSDR config entry');
220
213
  configUtils.register.registerCsdrPackage(
221
214
  pkg, args.pkgScope, args.pkgName, args.pkgFrontendVersion
@@ -243,7 +236,11 @@ module.exports.generate = (args = constants.DEFAULT_CONFIG) => {
243
236
  return Promise.resolve()
244
237
  .then(() => {
245
238
  if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE) {
239
+ if (!tools.isDirExists(path.join(process.cwd(), '.sdlc-config'))) {
240
+ throw new Error('SDLC necessary repositories not cloned in local project - contact MWP team');
241
+ }
246
242
  return generateRemote(args);
243
+
247
244
  } else {
248
245
  return generateDefault(args);
249
246
  }
@@ -0,0 +1,43 @@
1
+ {
2
+ "extends": "../../.eslintrc-eui19.json",
3
+ "ignorePatterns": [
4
+ "!**/*",
5
+ "**/*.d.ts",
6
+ "dist",
7
+ "test",
8
+ "coverage",
9
+ "externals",
10
+ "legacy"
11
+ ],
12
+ "overrides": [
13
+ {
14
+ "files": [
15
+ "*.ts"
16
+ ],
17
+ "parserOptions": {
18
+ "project": [
19
+ "packages/@module.full.name@/tsconfig.lib.json",
20
+ "packages/@module.full.name@/tsconfig.spec.json"
21
+ ]
22
+ },
23
+ "rules": {
24
+ "@angular-eslint/component-selector": [
25
+ "error",
26
+ {
27
+ "type": "element",
28
+ "prefix": ["@module.scope.string@"],
29
+ "style": "kebab-case"
30
+ }
31
+ ],
32
+ "@angular-eslint/directive-selector": [
33
+ "error",
34
+ {
35
+ "type": "attribute",
36
+ "prefix": ["@module.scope.string@"],
37
+ "style": "camelCase"
38
+ }
39
+ ]
40
+ }
41
+ }
42
+ ]
43
+ }
@@ -0,0 +1,4 @@
1
+ stages: [build]
2
+
3
+ include:
4
+ - component: $CI_SERVER_FQDN/csdr/csdr-templates/shared-components/package-release@master
@@ -0,0 +1,3 @@
1
+ {
2
+ "@module.scope-name@.TITLE": "@module.scope-name@"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "@module.scope-name@.TITLE": "**fr** @module.scope-name@ **fr**"
3
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "@eui/deps-base": "^19.0.0",
3
+ "@csdr/core": "^8.0.0"
4
+ }
@@ -0,0 +1,65 @@
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+
3
+ # compiled output
4
+ **/node_modules
5
+ **/target
6
+ **/build
7
+ **/dist
8
+ **/out-tsc
9
+ **/tmp
10
+ /test
11
+ /.config
12
+
13
+ # IDEs and editors
14
+ /.idea
15
+ .project
16
+ .classpath
17
+ .c9/
18
+ *.launch
19
+ .settings/
20
+ *.sublime-workspace
21
+
22
+ # IDE - VSCode
23
+ .vscode/*
24
+ !.vscode/settings.json
25
+ !.vscode/tasks.json
26
+ !.vscode/launch.json
27
+ !.vscode/extensions.json
28
+
29
+ # misc
30
+ /.sass-cache
31
+ /connect.lock
32
+ /coverage
33
+ /libpeerconnection.log
34
+ npm-debug.log
35
+ testem.log
36
+ /typings
37
+ yarn-error.log
38
+
39
+ # e2e
40
+ /e2e/*.js
41
+ /e2e/*.map
42
+ **/src/**/*.js
43
+ **/src/**/*.map
44
+
45
+ # System Files
46
+ .DS_Store
47
+ Thumbs.db
48
+
49
+ # Angular
50
+ .angular
51
+
52
+ # CI generated
53
+ .browserslistrc
54
+ variables
55
+ version.properties
56
+ audit.json
57
+ angular.json
58
+ .eslintrc.eui19.standalone.json
59
+ .eslintrc.standalone.json
60
+ tsconfig.standalone.json
61
+ tsconfig.lib.standalone.json
62
+ tsconfig.spec.standalone.json
63
+ tsconfig.spec.standalone-subentry.json
64
+ karma.conf.standalone.js
65
+ yarn.lock
@@ -0,0 +1,7 @@
1
+ const karmaConfig = require('@eui/tools/karma/karma.conf.pkg');
2
+
3
+ module.exports = function (config) {
4
+ config.set(
5
+ karmaConfig.get(config, '@module.full.name@', {})
6
+ );
7
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "./dist",
4
+ "lib": {
5
+ "entryFile": "src/index.ts"
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "@module.scope@/@module.name@",
3
+ "version": "1.0.0"
4
+ }
@@ -0,0 +1,5 @@
1
+ describe('First test', () => {
2
+ it('should work', () => {
3
+ expect(true).toBe(true);
4
+ });
5
+ });
@@ -0,0 +1 @@
1
+ export { @module.class.name@Module, routes } from './lib/module';
@@ -0,0 +1,10 @@
1
+ <eui-page>
2
+ <eui-page-header [label]="'@module.scope-name@.TITLE' | translate">
3
+ <eui-page-header-action-items>
4
+ </eui-page-header-action-items>
5
+ </eui-page-header>
6
+
7
+ <eui-page-content>
8
+ page content
9
+ </eui-page-content>
10
+ </eui-page>
@@ -0,0 +1,16 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { TranslateModule } from '@ngx-translate/core';
3
+ import { EuiButtonModule } from '@eui/components/eui-button';
4
+ import { EuiPageModule } from '@eui/components/eui-page';
5
+
6
+ @Component({
7
+ selector: '@module.scope-name@-cp',
8
+ templateUrl: './main.component.html',
9
+ imports: [
10
+ TranslateModule,
11
+ EuiButtonModule,
12
+ EuiPageModule,
13
+ ],
14
+ })
15
+ export class @module.class.name@Component {
16
+ }
@@ -0,0 +1,26 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { RouterModule, Routes } from '@angular/router';
4
+
5
+ // -- main component --
6
+ import { @module.class.name@Component } from './components/main.component';
7
+
8
+ // -- Routes --
9
+ export const routes: Routes = [
10
+ {
11
+ path: '',
12
+ pathMatch: 'full',
13
+ component: @module.class.name@Component,
14
+ },
15
+ ];
16
+
17
+ @NgModule({
18
+ imports: [
19
+ CommonModule,
20
+ RouterModule.forChild(routes),
21
+ @module.class.name@Component,
22
+ ],
23
+ exports: [],
24
+ })
25
+ export class @module.class.name@Module {
26
+ }
@@ -0,0 +1,22 @@
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';
4
+ import 'zone.js/dist/zone-testing';
5
+ import { getTestBed } from '@angular/core/testing';
6
+ import {
7
+ BrowserDynamicTestingModule,
8
+ platformBrowserDynamicTesting,
9
+ } from '@angular/platform-browser-dynamic/testing';
10
+
11
+ // eslint-disable-next-line
12
+ declare const require: any;
13
+
14
+ // First, initialize the Angular testing environment.
15
+ getTestBed().initTestEnvironment(
16
+ BrowserDynamicTestingModule,
17
+ platformBrowserDynamicTesting(),
18
+ );
19
+ // Then we find all the tests.
20
+ const context = require.context('./', true, /\.spec\.ts$/);
21
+ // And load the modules.
22
+ context.keys().map(context);
@@ -0,0 +1,33 @@
1
+ {
2
+ "extends": "../../tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/lib",
5
+ "target": "ES2022",
6
+ "module": "ES2022",
7
+ "moduleResolution": "node",
8
+ "declaration": true,
9
+ "sourceMap": true,
10
+ "inlineSources": true,
11
+ "emitDecoratorMetadata": true,
12
+ "experimentalDecorators": true,
13
+ "useDefineForClassFields": false,
14
+ "importHelpers": true,
15
+ "types": [],
16
+ "lib": [
17
+ "ES2022",
18
+ "dom"
19
+ ]
20
+ },
21
+ "angularCompilerOptions": {
22
+ "annotateForClosureCompiler": true,
23
+ "skipTemplateCodegen": true,
24
+ "strictMetadataEmit": true,
25
+ "fullTemplateTypeCheck": true,
26
+ "strictInjectionParameters": true,
27
+ "enableResourceInlining": true
28
+ },
29
+ "exclude": [
30
+ "src/test.ts",
31
+ "**/*.spec.ts"
32
+ ]
33
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "extends": "../../tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/spec",
5
+ "types": [
6
+ "jasmine",
7
+ "node"
8
+ ]
9
+ },
10
+ "files": [
11
+ "src/test.ts"
12
+ ],
13
+ "include": [
14
+ "**/*.spec.ts",
15
+ "**/*.d.ts"
16
+ ]
17
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "base": {
3
+ "@ngrx/effects": "^19.0.0",
4
+ "@ngrx/entity": "^19.0.0",
5
+ "@ngrx/operators": "^19.0.0",
6
+ "@ngrx/signals": "^19.0.0",
7
+ "@ngrx/store": "^19.0.0",
8
+ "@ngrx/router-store": "^19.0.0"
9
+ },
10
+ "composite": {
11
+ "@eui/deps-base": "^19.0.0",
12
+ "@module.scope@/@module.name@": "^1.0.0",
13
+ "@cc/shared": "^8.0.0",
14
+ "@mywp/shared": "^8.0.0",
15
+ "@csdr/core": "^8.0.0",
16
+ "@csdr/integration": "^7.0.0"
17
+ },
18
+ "int": {},
19
+ "acc": {},
20
+ "dlt": {},
21
+ "trn": {},
22
+ "ppd": {},
23
+ "prd": {}
24
+ }
@@ -0,0 +1,16 @@
1
+ spec:
2
+ inputs:
3
+ env_target:
4
+ type: string
5
+ default: "dev"
6
+ ---
7
+ stages: [build, post-build]
8
+
9
+ include:
10
+ - component: $CI_SERVER_FQDN/csdr/csdr-templates/shared-components/remote-release@master
11
+ inputs:
12
+ remote_name: @module.remote.name@
13
+ env_target: $[[ inputs.env_target ]]
14
+ - component: $CI_SERVER_FQDN/csdr/csdr-templates/shared-components/upload-remote@master
15
+ inputs:
16
+ remote_name: @module.remote.name@
@@ -0,0 +1,5 @@
1
+ {
2
+ "devDependencies": {
3
+ "@csdr/engine": "^1.0.0"
4
+ }
5
+ }
@@ -90,6 +90,7 @@ module.exports.registerCsdrPackage = (pkg, rootPkgScope, rootPkgName, euiVersion
90
90
  replaceModule = tools.replaceAll(replaceModule, '@module.rmTeam.name@', remoteConfig.rmTeamName);
91
91
  }
92
92
 
93
+
93
94
  let file;
94
95
  if (isRemote) {
95
96
  if (tools.isDirExists(path.join(process.cwd(), '.config'))) {
@@ -107,6 +108,10 @@ module.exports.registerCsdrPackage = (pkg, rootPkgScope, rootPkgName, euiVersion
107
108
 
108
109
  const moduleJson = JSON.parse(replaceModule);
109
110
 
111
+ if (pkg.sdlc) {
112
+ moduleJson.sdlc = true;
113
+ }
114
+
110
115
  if (isRemote && remoteConfig) {
111
116
  if (Object.keys(remoteConfig.options).length !== 0) {
112
117
  moduleJson.skeletonConfig.options = {};
@@ -136,6 +141,39 @@ module.exports.registerCsdrPackage = (pkg, rootPkgScope, rootPkgName, euiVersion
136
141
 
137
142
  tools.writeJsonFileSync(file, jsonFile);
138
143
 
144
+
145
+ // SPECIFIC SDLC CONFIG ENTRY - for transition during gitlab migration
146
+
147
+ if (tools.isDirExists(path.join(process.cwd(), '.sdlc-config'))) {
148
+ if (pkg.sdlc) {
149
+ if (isRemote) {
150
+ const sdlcRemoteConfigfile = path.join(process.cwd(), '.sdlc-config', 'remotes', '.euirc-remotes.json');
151
+ const sdlcRemoteConfig = require(sdlcRemoteConfigfile);
152
+
153
+ const newPkgName = pkg.name.replace('eui19-remote-el-ui', 'remote-eui19')
154
+
155
+ sdlcRemoteConfig[newPkgName] = moduleJson;
156
+ sdlcRemoteConfig[newPkgName].npmPkg = sdlcRemoteConfig[newPkgName].npmPkg.replace('eui19-remote-el', 'remote-eui19');
157
+
158
+ delete sdlcRemoteConfig[newPkgName].release;
159
+ delete sdlcRemoteConfig[newPkgName].slack;
160
+ sdlcRemoteConfig[newPkgName].msteams = { "channel": "pipeline-ui-mwp" };
161
+ sdlcRemoteConfig[newPkgName].release = { "team": "cc-digit-ui-rm" };
162
+ tools.writeJsonFileSync(sdlcRemoteConfigfile, sdlcRemoteConfig);
163
+
164
+ } else {
165
+ const sdlcPkgConfigfile = path.join(process.cwd(), '.sdlc-config', '.euirc-packages.json');
166
+ const sdlcPkgConfig = require(sdlcPkgConfigfile);
167
+
168
+ sdlcPkgConfig[pkg.name] = {
169
+ npmPkg: pkg.npmPkgName,
170
+ subgroup: pkg.repoName.split('/')[0]
171
+ }
172
+ tools.writeJsonFileSync(sdlcPkgConfigfile, sdlcPkgConfig);
173
+ }
174
+ }
175
+ }
176
+
139
177
  if (isBackend) {
140
178
  return;
141
179
  }
@@ -1,5 +0,0 @@
1
- {
2
- "msteams": {
3
- "channel": "pipeline-ui-mwp"
4
- }
5
- }