@eui/tools 4.19.0 → 4.19.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
- 4.19.0
1
+ 4.19.1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 4.19.1 (2022-01-21)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * csdr v13 app config skeleton - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([876f5336](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/876f5336f186d3bb245f132b0269ad38d72a1314))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 4.19.0 (2022-01-21)
2
11
 
3
12
  ##### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.19.0",
3
+ "version": "4.19.1",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -223,7 +223,126 @@ const angularProjectDef = {
223
223
  }
224
224
  };
225
225
 
226
-
226
+ const angularProjectDefV13 = {
227
+ "root": "",
228
+ "sourceRoot": "apps/@project.name@/src",
229
+ "projectType": "application",
230
+ "prefix": "app",
231
+ "schematics": {
232
+ "@schematics/angular:component": {
233
+ "style": "scss"
234
+ },
235
+ "@schematics/angular:application": {
236
+ "strict": true
237
+ }
238
+ },
239
+ "architect": {
240
+ "build": {
241
+ "builder": "@angular-devkit/build-angular:browser",
242
+ "options": {
243
+ "outputPath": "apps/@project.name@/dist",
244
+ "index": "apps/@project.name@/src/index.html",
245
+ "main": "apps/@project.name@/src/main.ts",
246
+ "polyfills": "apps/@project.name@/src/polyfills.ts",
247
+ "tsConfig": "apps/@project.name@/tsconfig.app.json",
248
+ "assets": [
249
+ "apps/@project.name@/src/favicon.ico",
250
+ "apps/@project.name@/src/assets",
251
+ {
252
+ "glob": "**/*",
253
+ "input": "node_modules/@eui/core/assets/",
254
+ "output": "./assets"
255
+ }
256
+ ],
257
+ "styles": [
258
+ ]
259
+ },
260
+ "configurations": {
261
+ "production": {
262
+ "fileReplacements": [
263
+ {
264
+ "replace": "apps/@project.name@/src/environments/environment.ts",
265
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
266
+ }
267
+ ],
268
+ "optimization": false,
269
+ "outputHashing": "all",
270
+ "sourceMap": false,
271
+ "namedChunks": true,
272
+ "aot": true,
273
+ "extractLicenses": true,
274
+ "vendorChunk": false,
275
+ "buildOptimizer": false,
276
+ "budgets": [
277
+ {
278
+ "type": "initial",
279
+ "maximumWarning": "2mb",
280
+ "maximumError": "6mb"
281
+ }
282
+ ]
283
+ },
284
+ "production-optimized": {
285
+ "fileReplacements": [
286
+ {
287
+ "replace": "apps/@project.name@/src/environments/environment.ts",
288
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
289
+ }
290
+ ],
291
+ "optimization": {
292
+ "scripts": true,
293
+ "styles": {
294
+ "minify": false,
295
+ "inlineCritical": true
296
+ },
297
+ "fonts": true
298
+ },
299
+ "outputHashing": "all",
300
+ "sourceMap": false,
301
+ "namedChunks": true,
302
+ "aot": true,
303
+ "extractLicenses": true,
304
+ "vendorChunk": false,
305
+ "buildOptimizer": true,
306
+ "budgets": [
307
+ {
308
+ "type": "initial",
309
+ "maximumWarning": "2mb",
310
+ "maximumError": "6mb"
311
+ }
312
+ ]
313
+ },
314
+ "development": {
315
+ "buildOptimizer": false,
316
+ "optimization": false,
317
+ "vendorChunk": true,
318
+ "extractLicenses": false,
319
+ "sourceMap": true,
320
+ "namedChunks": true
321
+ }
322
+ },
323
+ "defaultConfiguration": "production"
324
+ },
325
+ "serve": {
326
+ "builder": "@angular-devkit/build-angular:dev-server",
327
+ "options": {
328
+ "browserTarget": "@project.name@:build"
329
+ },
330
+ "configurations": {
331
+ "proxy-mock": {
332
+ "browserTarget": "@project.name@:build",
333
+ "proxyConfig": "apps/@project.name@/proxy-mock.conf.json"
334
+ },
335
+ "production": {
336
+ "browserTarget": "@project.name@:build:production"
337
+ },
338
+ "development": {
339
+ "browserTarget": "@project.name@:build:development"
340
+ }
341
+ },
342
+ "defaultConfiguration": "development"
343
+ }
344
+ }
345
+ };
227
346
 
228
347
  const angularProjectLightDef = {
229
348
  "root": "",
@@ -929,10 +1048,14 @@ module.exports.registerAngularProjectDef = (project, build = false) => {
929
1048
  }
930
1049
 
931
1050
  } else {
932
- if (project.build && project.build.csdrFileReplacement === true) {
933
- projectDef = JSON.stringify(angularProjectLightDef);
1051
+ if (project.build && project.build.euiVersion === '13.x') {
1052
+ projectDef = JSON.stringify(angularProjectDefV13);
934
1053
  } else {
935
- projectDef = JSON.stringify(angularProjectDef);
1054
+ if (project.build && project.build.csdrFileReplacement === true) {
1055
+ projectDef = JSON.stringify(angularProjectLightDef);
1056
+ } else {
1057
+ projectDef = JSON.stringify(angularProjectDef);
1058
+ }
936
1059
  }
937
1060
  }
938
1061
  let replaceProject = tools.replaceAll(projectDef, '@project.name@', project.name);