@eui/tools 6.7.5 → 6.8.1

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.
@@ -1 +1 @@
1
- 6.7.5
1
+ 6.8.1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.8.1 (2023-03-10)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * project eUI version fetch when no dependencies-composite - EUI-7240 [EUI-7240](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7240) ([f78ecdc8](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/f78ecdc823d2d7ebd49b21dea47ac70c59cfc6db))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.8.0 (2023-03-09)
11
+
12
+ ##### New Features
13
+
14
+ * **other:**
15
+ * adapted build scripts for eUI 16 - EUI-7240 [EUI-7240](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7240) ([c3693b58](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c3693b5893a812038e3031ae4b9ef59c2cc09bcd))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.7.5 (2023-03-09)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.7.5",
3
+ "version": "6.8.1",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -93,6 +93,9 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
93
93
  if (packageEuiVersion === '15.x') {
94
94
  projectDef = JSON.stringify(angularPackageDefV15);
95
95
  }
96
+ if (packageEuiVersion === '16.x') {
97
+ projectDef = JSON.stringify(angularPackageDefV15);
98
+ }
96
99
 
97
100
  let srcRoot = '/src', srcRootTesting = '';
98
101
  if (pkg.build && typeof pkg.build.srcRootDefault === 'boolean' && pkg.build.srcRootDefault === false) {
@@ -124,11 +127,15 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath, pkg
124
127
  projectDef = JSON.stringify(angularPackageSubEntryDef15);
125
128
  projectDef = projectDef.replace('"main":"packages/eui/packages/components/@subEntry.path@/test.ts",', '');
126
129
  }
130
+ if (packageEuiVersion === '16.x') {
131
+ projectDef = JSON.stringify(angularPackageSubEntryDef15);
132
+ projectDef = projectDef.replace('"main":"packages/eui/packages/components/@subEntry.path@/test.ts",', '');
133
+ }
127
134
  projectDef = tools.replaceAll(projectDef, '@subEntry.path@', subEntryName)
128
135
  projectDef = tools.replaceAll(projectDef, '@subEntry.package.name@', 'ng-package.json');
129
136
  projectDef = tools.replaceAll(projectDef, '@tsconfig@', pkg.tsConfigFileName);
130
137
 
131
- if (packageEuiVersion === '15.x') {
138
+ if (packageEuiVersion === '15.x' || packageEuiVersion === '16.x') {
132
139
  // if tsconfig is missing add it
133
140
  const tsConfigSpecPath = path.join(process.cwd(), JSON.parse(projectDef).architect.test.options.tsConfig);
134
141
  // check if tsconfig exists otherwise created it
@@ -182,6 +189,13 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
182
189
  angularRootPath = project.paths.root;
183
190
  } else {
184
191
  euiVersion = innerProjects.getProjectEuiVersion(project);
192
+
193
+ if (!euiVersion) {
194
+ if (project.build && project.build.euiVersion) {
195
+ euiVersion = project.build.euiVersion;
196
+ }
197
+ }
198
+
185
199
  angularRootPath = project.paths.angularPath;
186
200
  }
187
201
 
@@ -218,7 +232,7 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
218
232
  if (euiVersion === '13.x') {
219
233
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV13);
220
234
  tools.logInfo(`----using angularProjectDefFullSkeletonV13`);
221
- } else if (euiVersion === '14.x' || euiVersion === '15.x') {
235
+ } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
222
236
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV14);
223
237
  tools.logInfo(`----using angularProjectDefFullSkeletonV14`);
224
238
  } else {
@@ -230,7 +244,7 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
230
244
  if (euiVersion === '13.x') {
231
245
  projectDef = JSON.stringify(angularProjectDefV13);
232
246
  tools.logInfo(`----using angularProjectDefV13`);
233
- } else if (euiVersion === '14.x' || euiVersion === '15.x') {
247
+ } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
234
248
  projectDef = JSON.stringify(angularProjectDefV14);
235
249
  tools.logInfo(`----using angularProjectDefV14`);
236
250
  } else {
@@ -0,0 +1,6 @@
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
6
+ Firefox ESR