@eui/tools 6.21.122 → 6.21.124
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 +18 -0
- package/package.json +1 -1
- package/sandbox.js +14 -9
- package/scripts/app/public/package-init-old.html +287 -0
- package/scripts/app/public/package-init.html +1 -271
- package/scripts/utils/tools.js +7 -24
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.124
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.21.124 (2025-09-11)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* disable init-interactive tool - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([897f875b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/897f875bbf157ec7d45cbf468bad376c2e465fa8))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.21.123 (2025-09-10)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* put back colorize of console log output - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([e6162a71](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e6162a71593344283922e46bda67450c2b0d4550))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.21.122 (2025-09-09)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -23,7 +23,12 @@ const apiUtils = require('./scripts/utils/api-utils');
|
|
|
23
23
|
const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
24
24
|
const publishUtils = require('./scripts/utils/publish/publish-utils');
|
|
25
25
|
|
|
26
|
-
tools.
|
|
26
|
+
tools.logInfo('test info');
|
|
27
|
+
tools.logSuccess('test success');
|
|
28
|
+
tools.logWarning('test warning');
|
|
29
|
+
tools.logError('test error');
|
|
30
|
+
tools.logBigTitle('test big title');
|
|
31
|
+
tools.logTitle('test title');
|
|
27
32
|
|
|
28
33
|
// console.log(configUtils.packages.getPackages());
|
|
29
34
|
// console.log(configUtils.packages.getPackage('eui-tools'));
|
|
@@ -1525,12 +1530,12 @@ tools.logSuccess('yellow', 'test');
|
|
|
1525
1530
|
// })
|
|
1526
1531
|
|
|
1527
1532
|
|
|
1528
|
-
Promise.resolve()
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
+
// Promise.resolve()
|
|
1534
|
+
// .then(() => {
|
|
1535
|
+
// const pkg = configUtils.packages.getPackage('cinea-ifksds-ui');
|
|
1536
|
+
// return metadataUtils.packageUtils.isNewPackageBuild(pkg);
|
|
1537
|
+
// })
|
|
1533
1538
|
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1539
|
+
// .then((output) => {
|
|
1540
|
+
// console.log(output);
|
|
1541
|
+
// })
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<script src="https://unpkg.com/vue@2"></script>
|
|
7
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" />
|
|
8
|
+
</head>
|
|
9
|
+
|
|
10
|
+
<body>
|
|
11
|
+
<div id="app" class="container-fluid">
|
|
12
|
+
<div class="row">
|
|
13
|
+
<div class="col-6 full-height-flex">
|
|
14
|
+
<h3 class="mt-2 mb-4">CSDR package initialization</h3>
|
|
15
|
+
|
|
16
|
+
<div class="d-flex align-items-center mt-2">
|
|
17
|
+
<h5>Choose the package options:</h5>
|
|
18
|
+
<div class="ms-auto me-2">
|
|
19
|
+
<button class="btn btn-primary" @click="reset()">reset</button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="row mt-3 mb-3">
|
|
23
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package type</label>
|
|
24
|
+
<div class="col-sm-8">
|
|
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">
|
|
27
|
+
<option v-for="pkgType in options.pkgTypes" :value="pkgType.value">{{ pkgType.label }}</option>
|
|
28
|
+
</select> -->
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="row mt-3 mb-3">
|
|
33
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package scope</label>
|
|
34
|
+
<div class="col-sm-8">
|
|
35
|
+
<input type="text" class="form-control" placeholder="with @ prefix, f.e. : @cc" v-model="params.pkgScope" />
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="row mt-3 mb-3">
|
|
39
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package name</label>
|
|
40
|
+
<div class="col-sm-8">
|
|
41
|
+
<input
|
|
42
|
+
type="text"
|
|
43
|
+
class="form-control"
|
|
44
|
+
placeholder="in kebab case, f.e.: my-package"
|
|
45
|
+
v-model="params.pkgName" />
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div v-if="params.pkgType === 'frontend'">
|
|
50
|
+
<div class="row mt-3 mb-3">
|
|
51
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">Frontend type</label>
|
|
52
|
+
<div class="col-sm-8">
|
|
53
|
+
<select class="form-select" v-model="params.pkgFrontendType">
|
|
54
|
+
<option v-for="pkgType in options.frontendTypes" :value="pkgType.value">{{ pkgType.label }}</option>
|
|
55
|
+
</select>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div class="row mt-3 mb-3">
|
|
60
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">eUI Version</label>
|
|
61
|
+
<div class="col-sm-8">
|
|
62
|
+
<select class="form-select" v-model="params.pkgFrontendVersion">
|
|
63
|
+
<option v-for="version in options.frontendVersions" :value="version.value">{{ version.label }}</option>
|
|
64
|
+
</select>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div v-if="params.pkgFrontendType === 'default'">
|
|
69
|
+
<!-- <div class="row mt-3 mb-3">
|
|
70
|
+
<div class="col-sm-4">
|
|
71
|
+
<label class="form-check-label d-flex justify-content-end"> CSDR repository ? </label>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-8">
|
|
74
|
+
<div class="form-check form-switch">
|
|
75
|
+
<input class="form-check-input" type="checkbox" v-model="params.csdrRepo" />
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
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> -->
|
|
89
|
+
|
|
90
|
+
<!-- <div class="row mt-3 mb-3" v-if="!params.csdrRepo">
|
|
91
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">External repository project</label>
|
|
92
|
+
<div class="col-sm-8">
|
|
93
|
+
<input
|
|
94
|
+
type="text"
|
|
95
|
+
class="form-control"
|
|
96
|
+
placeholder="Indicate the CITnet project key where the repository belongs to"
|
|
97
|
+
v-model="params.externalRepoName" />
|
|
98
|
+
</div>
|
|
99
|
+
</div> -->
|
|
100
|
+
|
|
101
|
+
<!-- <div class="row mt-3 mb-3">
|
|
102
|
+
<div class="col-sm-4">
|
|
103
|
+
<label class="form-check-label d-flex justify-content-end"> Participant package type ?</label>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-sm-8">
|
|
106
|
+
<div class="form-check form-switch">
|
|
107
|
+
<input class="form-check-input" type="checkbox" v-model="params.pkgFrontendParticipant" />
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div> -->
|
|
111
|
+
<!-- <div class="row mt-3 mb-3">
|
|
112
|
+
<div class="col-sm-4">
|
|
113
|
+
<label class="form-check-label d-flex justify-content-end"> Participant package type - NgRx (advanced) ?</label>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="col-sm-8">
|
|
116
|
+
<div class="form-check form-switch">
|
|
117
|
+
<input class="form-check-input" type="checkbox" v-model="params.pkgFrontendParticipantNgRx" />
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div> -->
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
<div v-if="params.pkgFrontendType === 'remote'">
|
|
124
|
+
<div class="row mt-3 mb-1">
|
|
125
|
+
<div class="col-sm-4 d-flex justify-content-end"><h6>Remote specific parameters</h6></div>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="row mt-1 mb-3">
|
|
128
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">XLR release team name</label>
|
|
129
|
+
<div class="col-sm-8">
|
|
130
|
+
<input
|
|
131
|
+
type="text"
|
|
132
|
+
class="form-control"
|
|
133
|
+
placeholder="Should be in the format : cc-TEAM-ui-rm"
|
|
134
|
+
v-model="params.remoteConfig.rmTeamName" />
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<div class="row mt-3 mb-1">
|
|
139
|
+
<div class="col-sm-4 d-flex justify-content-end"><h6>Remote skeleton options</h6></div>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="row mt-1 mb-3">
|
|
142
|
+
<div class="col-sm-4">
|
|
143
|
+
<label class="form-check-label d-flex justify-content-end"> Participant? </label>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="col-sm-8">
|
|
146
|
+
<div class="form-check form-switch">
|
|
147
|
+
<input class="form-check-input" type="checkbox" v-model="params.remoteConfig.options.participant" />
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="row mt-3 mb-3">
|
|
152
|
+
<div class="col-sm-4">
|
|
153
|
+
<label class="form-check-label d-flex justify-content-end"> Dynamic forms? </label>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="col-sm-8">
|
|
156
|
+
<div class="form-check form-switch">
|
|
157
|
+
<input
|
|
158
|
+
class="form-check-input"
|
|
159
|
+
type="checkbox"
|
|
160
|
+
v-model="params.remoteConfig.options.dynamicForms" />
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="row mt-3 mb-3">
|
|
165
|
+
<div class="col-sm-4">
|
|
166
|
+
<label class="form-check-label d-flex justify-content-end"> Zipkin enabled? </label>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="col-sm-8">
|
|
169
|
+
<div class="form-check form-switch">
|
|
170
|
+
<input class="form-check-input" type="checkbox" v-model="params.remoteConfig.options.zipkin" />
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="row mt-3 mb-3">
|
|
175
|
+
<div class="col-sm-4">
|
|
176
|
+
<label class="form-check-label d-flex justify-content-end"> User reducers? </label>
|
|
177
|
+
</div>
|
|
178
|
+
<div class="col-sm-8">
|
|
179
|
+
<div class="form-check form-switch">
|
|
180
|
+
<input
|
|
181
|
+
class="form-check-input"
|
|
182
|
+
type="checkbox"
|
|
183
|
+
v-model="params.remoteConfig.options.userReducers" />
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="row mt-3 mb-3">
|
|
188
|
+
<div class="col-sm-4">
|
|
189
|
+
<label class="form-check-label d-flex justify-content-end"> Dynatrace activated? </label>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="col-sm-8">
|
|
192
|
+
<div class="form-check form-switch">
|
|
193
|
+
<input class="form-check-input" type="checkbox" v-model="params.remoteConfig.options.dynatrace" />
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<div v-if="params.pkgType === 'backend'">
|
|
201
|
+
<div class="row mt-3 mb-3">
|
|
202
|
+
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package maven groupId</label>
|
|
203
|
+
<div class="col-sm-8">
|
|
204
|
+
<input type="text" class="form-control" v-model="params.pkgGroupId" />
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<div class="col-6">
|
|
211
|
+
<h5 class="mt-5 mb-3">Initialization parameters</h5>
|
|
212
|
+
<pre>
|
|
213
|
+
{{ paramsJson }}
|
|
214
|
+
</pre>
|
|
215
|
+
|
|
216
|
+
<div class="alert alert-danger" v-if="!isParamsValid">Some field are either empty or invalid</div>
|
|
217
|
+
|
|
218
|
+
<div class="alert alert-info mt-2">
|
|
219
|
+
Contact MWP Core team for procedure (updated to gitlab SDLC)
|
|
220
|
+
<!-- <div v-if="params.pkgFrontendType === 'default' || params.pkgType === 'backend'">
|
|
221
|
+
<strong>Setup procedure for :<span class="text-primary"> UI or BACKEND </span> package type</strong>
|
|
222
|
+
<ul>
|
|
223
|
+
<li>Ensure first that the root repository is correctly up-to-date, by pulling it</li>
|
|
224
|
+
<li>Execute the initialization here providing the necessary parameters</li>
|
|
225
|
+
<li>
|
|
226
|
+
Create the repository - default branch <strong>master</strong> according to the parameters provided :
|
|
227
|
+
<strong>scope-packageName-ui/backend</strong>,
|
|
228
|
+
</li>
|
|
229
|
+
<li>git commit and push <strong>/packages/PACKAGE_NAME</strong> with conv. message format</li>
|
|
230
|
+
<li>Create the <strong>develop</strong> branch derived from the master branch just pushed</li>
|
|
231
|
+
<li>
|
|
232
|
+
Commit the changes made on the
|
|
233
|
+
<strong>rooot repository/.csdr/.euirc-csdr-packages.json</strong> file
|
|
234
|
+
</li>
|
|
235
|
+
<li>Create the bamboo plan, cloning an existing UI package one, for develop branch / repository created</li>
|
|
236
|
+
<li>Run the develop branch plan and check <strong>Slack</strong> pipeline output</li>
|
|
237
|
+
<li>
|
|
238
|
+
Create the <strong>master branch plan</strong> once the develop branch plan build is completed and
|
|
239
|
+
succeeded
|
|
240
|
+
</li>
|
|
241
|
+
</ul>
|
|
242
|
+
</div> -->
|
|
243
|
+
|
|
244
|
+
<!-- <div v-if="params.pkgFrontendType === 'remote' && params.pkgType !== 'backend'">
|
|
245
|
+
<strong
|
|
246
|
+
>Setup procedure for :<span class="text-primary"> REMOTE </span> package type</strong
|
|
247
|
+
>
|
|
248
|
+
|
|
249
|
+
<ul>
|
|
250
|
+
<li>Ensure first that the root repository is correctly up-to-date, by pulling it</li>
|
|
251
|
+
<li>Execute the initialization here providing the necessary parameters</li>
|
|
252
|
+
<li>
|
|
253
|
+
commit and push the changes in <strong>/packages/csdr-remotes-config</strong> - from a feature derived
|
|
254
|
+
from the <strong>master</strong> branch (conv. message format)
|
|
255
|
+
</li>
|
|
256
|
+
<li>
|
|
257
|
+
Commit the changes made on the
|
|
258
|
+
<strong>rooot repository/.csdr/.euirc-csdr-remotes.json</strong> file - from a feature branch derived
|
|
259
|
+
from the <strong>master</strong> branch
|
|
260
|
+
</li>
|
|
261
|
+
<li>Create a bamboo plan, cloning an existing <strong>app-remote-REMOTE_NAME_v_DEV</strong></li>
|
|
262
|
+
<li>Create a bamboo plan, cloning an existing <strong>app-remote-REMOTE_NAME_v_TST</strong></li>
|
|
263
|
+
<li>
|
|
264
|
+
Do not run the plan, it mostly probably not build successfully (until the root UI package is built
|
|
265
|
+
first) OR some adjustements will be needed in the remote configuration (in the case of a remote
|
|
266
|
+
participant f.e.)
|
|
267
|
+
</li>
|
|
268
|
+
</ul>
|
|
269
|
+
</div> -->
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<hr />
|
|
273
|
+
<button class="btn btn-primary" type="button" :disabled="!isParamsValid" @click="save()">Initialize package</button>
|
|
274
|
+
|
|
275
|
+
<div v-if="saveSubmitted" class="mt-2">
|
|
276
|
+
<div v-if="saveOK" class="alert alert-success">
|
|
277
|
+
Package initialized - check server log to ensure good completion
|
|
278
|
+
</div>
|
|
279
|
+
<div v-if="!saveOK" class="alert alert-danger">Error occured, check server log</div>
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
</body>
|
|
285
|
+
|
|
286
|
+
<script src="package-init.js"></script>
|
|
287
|
+
</html>
|
|
@@ -9,277 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<body>
|
|
11
11
|
<div id="app" class="container-fluid">
|
|
12
|
-
|
|
13
|
-
<div class="col-6 full-height-flex">
|
|
14
|
-
<h3 class="mt-2 mb-4">CSDR package initialization</h3>
|
|
15
|
-
|
|
16
|
-
<div class="d-flex align-items-center mt-2">
|
|
17
|
-
<h5>Choose the package options:</h5>
|
|
18
|
-
<div class="ms-auto me-2">
|
|
19
|
-
<button class="btn btn-primary" @click="reset()">reset</button>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="row mt-3 mb-3">
|
|
23
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package type</label>
|
|
24
|
-
<div class="col-sm-8">
|
|
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">
|
|
27
|
-
<option v-for="pkgType in options.pkgTypes" :value="pkgType.value">{{ pkgType.label }}</option>
|
|
28
|
-
</select> -->
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<div class="row mt-3 mb-3">
|
|
33
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package scope</label>
|
|
34
|
-
<div class="col-sm-8">
|
|
35
|
-
<input type="text" class="form-control" placeholder="with @ prefix, f.e. : @cc" v-model="params.pkgScope" />
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="row mt-3 mb-3">
|
|
39
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package name</label>
|
|
40
|
-
<div class="col-sm-8">
|
|
41
|
-
<input
|
|
42
|
-
type="text"
|
|
43
|
-
class="form-control"
|
|
44
|
-
placeholder="in kebab case, f.e.: my-package"
|
|
45
|
-
v-model="params.pkgName" />
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<div v-if="params.pkgType === 'frontend'">
|
|
50
|
-
<div class="row mt-3 mb-3">
|
|
51
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">Frontend type</label>
|
|
52
|
-
<div class="col-sm-8">
|
|
53
|
-
<select class="form-select" v-model="params.pkgFrontendType">
|
|
54
|
-
<option v-for="pkgType in options.frontendTypes" :value="pkgType.value">{{ pkgType.label }}</option>
|
|
55
|
-
</select>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
<div class="row mt-3 mb-3">
|
|
60
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">eUI Version</label>
|
|
61
|
-
<div class="col-sm-8">
|
|
62
|
-
<select class="form-select" v-model="params.pkgFrontendVersion">
|
|
63
|
-
<option v-for="version in options.frontendVersions" :value="version.value">{{ version.label }}</option>
|
|
64
|
-
</select>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<div v-if="params.pkgFrontendType === 'default'">
|
|
69
|
-
<!-- <div class="row mt-3 mb-3">
|
|
70
|
-
<div class="col-sm-4">
|
|
71
|
-
<label class="form-check-label d-flex justify-content-end"> CSDR repository ? </label>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-8">
|
|
74
|
-
<div class="form-check form-switch">
|
|
75
|
-
<input class="form-check-input" type="checkbox" v-model="params.csdrRepo" />
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
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> -->
|
|
89
|
-
|
|
90
|
-
<!-- <div class="row mt-3 mb-3" v-if="!params.csdrRepo">
|
|
91
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">External repository project</label>
|
|
92
|
-
<div class="col-sm-8">
|
|
93
|
-
<input
|
|
94
|
-
type="text"
|
|
95
|
-
class="form-control"
|
|
96
|
-
placeholder="Indicate the CITnet project key where the repository belongs to"
|
|
97
|
-
v-model="params.externalRepoName" />
|
|
98
|
-
</div>
|
|
99
|
-
</div> -->
|
|
100
|
-
|
|
101
|
-
<!-- <div class="row mt-3 mb-3">
|
|
102
|
-
<div class="col-sm-4">
|
|
103
|
-
<label class="form-check-label d-flex justify-content-end"> Participant package type ?</label>
|
|
104
|
-
</div>
|
|
105
|
-
<div class="col-sm-8">
|
|
106
|
-
<div class="form-check form-switch">
|
|
107
|
-
<input class="form-check-input" type="checkbox" v-model="params.pkgFrontendParticipant" />
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
</div> -->
|
|
111
|
-
<!-- <div class="row mt-3 mb-3">
|
|
112
|
-
<div class="col-sm-4">
|
|
113
|
-
<label class="form-check-label d-flex justify-content-end"> Participant package type - NgRx (advanced) ?</label>
|
|
114
|
-
</div>
|
|
115
|
-
<div class="col-sm-8">
|
|
116
|
-
<div class="form-check form-switch">
|
|
117
|
-
<input class="form-check-input" type="checkbox" v-model="params.pkgFrontendParticipantNgRx" />
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
</div> -->
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
<div v-if="params.pkgFrontendType === 'remote'">
|
|
124
|
-
<div class="row mt-3 mb-1">
|
|
125
|
-
<div class="col-sm-4 d-flex justify-content-end"><h6>Remote specific parameters</h6></div>
|
|
126
|
-
</div>
|
|
127
|
-
<div class="row mt-1 mb-3">
|
|
128
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">XLR release team name</label>
|
|
129
|
-
<div class="col-sm-8">
|
|
130
|
-
<input
|
|
131
|
-
type="text"
|
|
132
|
-
class="form-control"
|
|
133
|
-
placeholder="Should be in the format : cc-TEAM-ui-rm"
|
|
134
|
-
v-model="params.remoteConfig.rmTeamName" />
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
|
|
138
|
-
<div class="row mt-3 mb-1">
|
|
139
|
-
<div class="col-sm-4 d-flex justify-content-end"><h6>Remote skeleton options</h6></div>
|
|
140
|
-
</div>
|
|
141
|
-
<div class="row mt-1 mb-3">
|
|
142
|
-
<div class="col-sm-4">
|
|
143
|
-
<label class="form-check-label d-flex justify-content-end"> Participant? </label>
|
|
144
|
-
</div>
|
|
145
|
-
<div class="col-sm-8">
|
|
146
|
-
<div class="form-check form-switch">
|
|
147
|
-
<input class="form-check-input" type="checkbox" v-model="params.remoteConfig.options.participant" />
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
<div class="row mt-3 mb-3">
|
|
152
|
-
<div class="col-sm-4">
|
|
153
|
-
<label class="form-check-label d-flex justify-content-end"> Dynamic forms? </label>
|
|
154
|
-
</div>
|
|
155
|
-
<div class="col-sm-8">
|
|
156
|
-
<div class="form-check form-switch">
|
|
157
|
-
<input
|
|
158
|
-
class="form-check-input"
|
|
159
|
-
type="checkbox"
|
|
160
|
-
v-model="params.remoteConfig.options.dynamicForms" />
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
</div>
|
|
164
|
-
<div class="row mt-3 mb-3">
|
|
165
|
-
<div class="col-sm-4">
|
|
166
|
-
<label class="form-check-label d-flex justify-content-end"> Zipkin enabled? </label>
|
|
167
|
-
</div>
|
|
168
|
-
<div class="col-sm-8">
|
|
169
|
-
<div class="form-check form-switch">
|
|
170
|
-
<input class="form-check-input" type="checkbox" v-model="params.remoteConfig.options.zipkin" />
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
<div class="row mt-3 mb-3">
|
|
175
|
-
<div class="col-sm-4">
|
|
176
|
-
<label class="form-check-label d-flex justify-content-end"> User reducers? </label>
|
|
177
|
-
</div>
|
|
178
|
-
<div class="col-sm-8">
|
|
179
|
-
<div class="form-check form-switch">
|
|
180
|
-
<input
|
|
181
|
-
class="form-check-input"
|
|
182
|
-
type="checkbox"
|
|
183
|
-
v-model="params.remoteConfig.options.userReducers" />
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
|
-
<div class="row mt-3 mb-3">
|
|
188
|
-
<div class="col-sm-4">
|
|
189
|
-
<label class="form-check-label d-flex justify-content-end"> Dynatrace activated? </label>
|
|
190
|
-
</div>
|
|
191
|
-
<div class="col-sm-8">
|
|
192
|
-
<div class="form-check form-switch">
|
|
193
|
-
<input class="form-check-input" type="checkbox" v-model="params.remoteConfig.options.dynatrace" />
|
|
194
|
-
</div>
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
</div>
|
|
199
|
-
|
|
200
|
-
<div v-if="params.pkgType === 'backend'">
|
|
201
|
-
<div class="row mt-3 mb-3">
|
|
202
|
-
<label class="col-sm-4 col-form-label d-flex justify-content-end">Package maven groupId</label>
|
|
203
|
-
<div class="col-sm-8">
|
|
204
|
-
<input type="text" class="form-control" v-model="params.pkgGroupId" />
|
|
205
|
-
</div>
|
|
206
|
-
</div>
|
|
207
|
-
</div>
|
|
208
|
-
</div>
|
|
209
|
-
|
|
210
|
-
<div class="col-6">
|
|
211
|
-
<h5 class="mt-5 mb-3">Initialization parameters</h5>
|
|
212
|
-
<pre>
|
|
213
|
-
{{ paramsJson }}
|
|
214
|
-
</pre>
|
|
215
|
-
|
|
216
|
-
<div class="alert alert-danger" v-if="!isParamsValid">Some field are either empty or invalid</div>
|
|
217
|
-
|
|
218
|
-
<div class="alert alert-info mt-2">
|
|
219
|
-
Contact MWP Core team for procedure (updated to gitlab SDLC)
|
|
220
|
-
<!-- <div v-if="params.pkgFrontendType === 'default' || params.pkgType === 'backend'">
|
|
221
|
-
<strong>Setup procedure for :<span class="text-primary"> UI or BACKEND </span> package type</strong>
|
|
222
|
-
<ul>
|
|
223
|
-
<li>Ensure first that the root repository is correctly up-to-date, by pulling it</li>
|
|
224
|
-
<li>Execute the initialization here providing the necessary parameters</li>
|
|
225
|
-
<li>
|
|
226
|
-
Create the repository - default branch <strong>master</strong> according to the parameters provided :
|
|
227
|
-
<strong>scope-packageName-ui/backend</strong>,
|
|
228
|
-
</li>
|
|
229
|
-
<li>git commit and push <strong>/packages/PACKAGE_NAME</strong> with conv. message format</li>
|
|
230
|
-
<li>Create the <strong>develop</strong> branch derived from the master branch just pushed</li>
|
|
231
|
-
<li>
|
|
232
|
-
Commit the changes made on the
|
|
233
|
-
<strong>rooot repository/.csdr/.euirc-csdr-packages.json</strong> file
|
|
234
|
-
</li>
|
|
235
|
-
<li>Create the bamboo plan, cloning an existing UI package one, for develop branch / repository created</li>
|
|
236
|
-
<li>Run the develop branch plan and check <strong>Slack</strong> pipeline output</li>
|
|
237
|
-
<li>
|
|
238
|
-
Create the <strong>master branch plan</strong> once the develop branch plan build is completed and
|
|
239
|
-
succeeded
|
|
240
|
-
</li>
|
|
241
|
-
</ul>
|
|
242
|
-
</div> -->
|
|
243
|
-
|
|
244
|
-
<!-- <div v-if="params.pkgFrontendType === 'remote' && params.pkgType !== 'backend'">
|
|
245
|
-
<strong
|
|
246
|
-
>Setup procedure for :<span class="text-primary"> REMOTE </span> package type</strong
|
|
247
|
-
>
|
|
248
|
-
|
|
249
|
-
<ul>
|
|
250
|
-
<li>Ensure first that the root repository is correctly up-to-date, by pulling it</li>
|
|
251
|
-
<li>Execute the initialization here providing the necessary parameters</li>
|
|
252
|
-
<li>
|
|
253
|
-
commit and push the changes in <strong>/packages/csdr-remotes-config</strong> - from a feature derived
|
|
254
|
-
from the <strong>master</strong> branch (conv. message format)
|
|
255
|
-
</li>
|
|
256
|
-
<li>
|
|
257
|
-
Commit the changes made on the
|
|
258
|
-
<strong>rooot repository/.csdr/.euirc-csdr-remotes.json</strong> file - from a feature branch derived
|
|
259
|
-
from the <strong>master</strong> branch
|
|
260
|
-
</li>
|
|
261
|
-
<li>Create a bamboo plan, cloning an existing <strong>app-remote-REMOTE_NAME_v_DEV</strong></li>
|
|
262
|
-
<li>Create a bamboo plan, cloning an existing <strong>app-remote-REMOTE_NAME_v_TST</strong></li>
|
|
263
|
-
<li>
|
|
264
|
-
Do not run the plan, it mostly probably not build successfully (until the root UI package is built
|
|
265
|
-
first) OR some adjustements will be needed in the remote configuration (in the case of a remote
|
|
266
|
-
participant f.e.)
|
|
267
|
-
</li>
|
|
268
|
-
</ul>
|
|
269
|
-
</div> -->
|
|
270
|
-
</div>
|
|
271
|
-
|
|
272
|
-
<hr />
|
|
273
|
-
<button class="btn btn-primary" type="button" :disabled="!isParamsValid" @click="save()">Initialize package</button>
|
|
274
|
-
|
|
275
|
-
<div v-if="saveSubmitted" class="mt-2">
|
|
276
|
-
<div v-if="saveOK" class="alert alert-success">
|
|
277
|
-
Package initialized - check server log to ensure good completion
|
|
278
|
-
</div>
|
|
279
|
-
<div v-if="!saveOK" class="alert alert-danger">Error occured, check server log</div>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
</div>
|
|
12
|
+
Contact support for new package creation / this tool is discontinued
|
|
283
13
|
</div>
|
|
284
14
|
</body>
|
|
285
15
|
|
package/scripts/utils/tools.js
CHANGED
|
@@ -8,7 +8,6 @@ const glob = require('glob');
|
|
|
8
8
|
const childProcess = require("child_process");
|
|
9
9
|
const execSync = childProcess.execSync;
|
|
10
10
|
const semver = require('semver');
|
|
11
|
-
// const chalk = require('chalk');
|
|
12
11
|
const figlet = require('figlet');
|
|
13
12
|
const figures = require('figures');
|
|
14
13
|
const spawn = require('cross-spawn');
|
|
@@ -678,11 +677,7 @@ function isSysConfigValid() {
|
|
|
678
677
|
|
|
679
678
|
function logBigTitle(text) {
|
|
680
679
|
console.log('\n\n');
|
|
681
|
-
console.log(
|
|
682
|
-
// util.styleText('yellow',
|
|
683
|
-
figlet.textSync(text, { horizontalLayout: 'full' })
|
|
684
|
-
// )
|
|
685
|
-
);
|
|
680
|
+
console.log('\x1b[33m', figlet.textSync(text, { horizontalLayout: 'full' }) ,'\x1b[0m');
|
|
686
681
|
console.log('\n');
|
|
687
682
|
}
|
|
688
683
|
|
|
@@ -744,39 +739,27 @@ const log = (msg, type) => {
|
|
|
744
739
|
if (type === 0 || !type) {
|
|
745
740
|
prefix = figures.play;
|
|
746
741
|
msgContent = `\n${currentDateTime} - ${prefix} ${msg.toUpperCase()}`;
|
|
747
|
-
if (!isTestRunning) console.info(
|
|
748
|
-
// util.styleText('yellow',
|
|
749
|
-
msgContent)
|
|
750
|
-
// );
|
|
742
|
+
if (!isTestRunning) console.info('\x1b[33m', msgContent ,'\x1b[0m');
|
|
751
743
|
}
|
|
752
744
|
if (type === 1) {
|
|
753
745
|
prefix = figures.pointer.repeat(3);
|
|
754
746
|
msgContent = `${currentDateTime} - ${prefix} ${msg}`;
|
|
755
|
-
if (!isTestRunning) console.info(
|
|
756
|
-
// util.styleText('cyan',
|
|
757
|
-
msgContent)
|
|
758
|
-
// );
|
|
747
|
+
if (!isTestRunning) console.info('\x1b[34m\x1b[1m', msgContent ,'\x1b[0m');
|
|
759
748
|
}
|
|
760
749
|
if (type === 2) {
|
|
761
750
|
prefix = figures.pointer.repeat(6);
|
|
762
751
|
msgContent = `${currentDateTime} - ${prefix} ${msg}\n`;
|
|
763
|
-
if (!isTestRunning) console.info(
|
|
764
|
-
// util.styleText('green',
|
|
765
|
-
msgContent)
|
|
766
|
-
// );
|
|
752
|
+
if (!isTestRunning) console.info('\x1b[32m\x1b[1m', msgContent ,'\x1b[0m');
|
|
767
753
|
}
|
|
768
754
|
if (type === 3) {
|
|
769
755
|
prefix = figures.pointer.repeat(6);
|
|
770
|
-
msgContent =
|
|
771
|
-
console.info(
|
|
772
|
-
// util.styleText('red',
|
|
773
|
-
msgContent)
|
|
774
|
-
// );
|
|
756
|
+
msgContent = `\n${currentDateTime} - ${prefix} ${msg}`;
|
|
757
|
+
console.info('\x1b[31m\x1b[1m', msgContent ,'\x1b[0m');
|
|
775
758
|
}
|
|
776
759
|
if (type === 4) {
|
|
777
760
|
prefix = figures.pointer.repeat(6);
|
|
778
761
|
msgContent = `\n${currentDateTime} - ${prefix} ${msg}\n`;
|
|
779
|
-
console.info(msgContent);
|
|
762
|
+
console.info('\x1b[33m', msgContent ,'\x1b[0m');
|
|
780
763
|
}
|
|
781
764
|
if (type === 5) {
|
|
782
765
|
prefix = figures.star.repeat(3);
|