@eui/tools 6.2.13 → 6.2.15

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.2.13
1
+ 6.2.15
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.2.15 (2022-11-12)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * local-dev sync on virtual remotes - added 15.x resolutions (issues with https for slack output) - tsconfig root not generated - MWP-9010 [MWP-9010](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9010) ([75b0e212](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/75b0e212d67bb780c60b65d417ac4b7ab1e3f65f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.2.14 (2022-11-12)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * virtual remotes skeleton files not published package.json renamed - MWP-9010 [MWP-9010](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9010) ([427e7321](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/427e73212c4a77dde42393317f0c49b8ec3fa88c))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.2.13 (2022-11-12)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.13",
3
+ "version": "6.2.15",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -18,13 +18,12 @@ module.exports.getRemote = (remoteName, euiVersion) => {
18
18
  }
19
19
 
20
20
 
21
-
22
- tools.logTitle(`Getting remote config for ${remoteName} version ${euiVersion}`);
23
-
24
21
  if (!euiVersion) {
25
- throw new error('euiVersion should be provided as parameter');
22
+ throw new Error('euiVersion should be provided as parameter');
26
23
  }
27
24
 
25
+ tools.logTitle(`Getting remote config for ${remoteName} version ${euiVersion}`);
26
+
28
27
  const remotesConfig = require(path.join(process.cwd(), '.csdr', '.euirc-csdr-remotes.json'));
29
28
  const remoteConfig = remotesConfig[remoteName];
30
29
 
@@ -27,6 +27,7 @@ module.exports.run = () => {
27
27
  const pkgFolders = tools.getFolders(path.join(process.cwd(), 'packages'));
28
28
  const prjFolders = tools.getFolders(path.join(process.cwd(), 'apps'));
29
29
  const hostFolders = tools.getFolders(path.join(process.cwd(), 'hosts'));
30
+ const remoteFolders = tools.getFolders(path.join(process.cwd(), 'remotes'));
30
31
 
31
32
  const csdrProjects = innerProjects.getCsdrProjects();
32
33
 
@@ -68,7 +69,7 @@ module.exports.run = () => {
68
69
  // update the local config file
69
70
  const config = {
70
71
  projects: projects,
71
- packages: pkgFolders
72
+ packages: [...pkgFolders, ...remoteFolders]
72
73
  };
73
74
 
74
75
  tools.writeJsonFileSync(path.join(process.cwd(), '.csdr', '.euirc.json'), config);
@@ -109,13 +109,6 @@ module.exports.init = () => {
109
109
  }
110
110
  })
111
111
 
112
- // Importing packages and generating definitions
113
- .then(() => {
114
- if (!finalResponse.remote) {
115
- return initUtils.packages.importPackages(finalResponse);
116
- }
117
- })
118
-
119
112
  // Importing external sources
120
113
  .then(() => {
121
114
  if (finalResponse.project) {
@@ -134,6 +127,11 @@ module.exports.init = () => {
134
127
  }
135
128
  })
136
129
 
130
+ // Importing packages and generating definitions
131
+ .then(() => {
132
+ return initUtils.packages.importPackages(finalResponse);
133
+ })
134
+
137
135
  // adapt and inject particular root data/config for eUI version detected on project
138
136
  // if multiple versions of eUI are detected on the same project, an exception is thrown
139
137
  .then(() => {
@@ -0,0 +1,79 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "apps",
5
+ "projects": {
6
+ "@remote.name@": {
7
+ "root": ".",
8
+ "sourceRoot": "src",
9
+ "projectType": "application",
10
+ "prefix": "app",
11
+ "schematics": {},
12
+ "architect": {
13
+ "build": {
14
+ "builder": "@angular-devkit/build-angular:browser",
15
+ "options": {
16
+ "outputPath": "dist",
17
+ "index": "src/index.html",
18
+ "main": "src/main.ts",
19
+ "polyfills": "src/polyfills.ts",
20
+ "tsConfig": "tsconfig.app.json",
21
+ "sourceMap": {
22
+ "scripts": true,
23
+ "styles": false,
24
+ "hidden": true,
25
+ "vendor": true
26
+ },
27
+ "scripts": [
28
+ "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
29
+ ],
30
+ "assets": [
31
+ "src/assets",
32
+ {
33
+ "glob": "**/*",
34
+ "input": "node_modules/@eui/core/assets/",
35
+ "output": "./assets"
36
+ },
37
+ {
38
+ "glob": "**/*",
39
+ "input": "node_modules/@eui/styles-base/dist/assets/",
40
+ "output": "./assets"
41
+ }
42
+ ],
43
+ "styles": [
44
+ "node_modules/@eui/styles/dist/styles/eui.css",
45
+ "node_modules/@eui/styles/dist/styles/eui-extra-utilities.css",
46
+ "node_modules/@eui/styles/dist/styles/eui-legacy-bootstrap.css",
47
+ "node_modules/@eui/styles/dist/styles/eui-legacy-icons-font.css",
48
+ "node_modules/@eui/styles/dist/styles/eui-legacy-utilities.css"
49
+ ]
50
+ },
51
+ "configurations": {
52
+ "production": {
53
+ "fileReplacements": [
54
+ {
55
+ "replace": "src/environments/environment.ts",
56
+ "with": "src/environments/environment.prod.ts"
57
+ }
58
+ ],
59
+ "optimization": true,
60
+ "outputHashing": "all",
61
+ "sourceMap": true,
62
+ "namedChunks": false,
63
+ "aot": true,
64
+ "extractLicenses": true,
65
+ "vendorChunk": false,
66
+ "buildOptimizer": true
67
+ },
68
+ "serve-dist": {
69
+ "outputPath": "serve-dist"
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ },
76
+ "cli": {
77
+ "analytics": false
78
+ }
79
+ }
@@ -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
@@ -0,0 +1,24 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/app",
5
+ "target": "ES2022",
6
+ "module": "ES2022",
7
+ "lib": [
8
+ "ES2022",
9
+ "dom"
10
+ ],
11
+ "types": [
12
+ "node"
13
+ ],
14
+ "paths": {
15
+ "os": ["./node_modules/empty-module/index.js"],
16
+ "node-fetch": ["./node_modules/empty-module/index.js"],
17
+ "zipkin": ["./node_modules/zipkin/dist/zipkin.js"]
18
+ }
19
+ },
20
+ "exclude": [
21
+ "src/test.ts",
22
+ "**/*.spec.ts"
23
+ ]
24
+ }
@@ -80,6 +80,11 @@ module.exports.generateVirtualRemote = (remoteName, euiVersion) => {
80
80
  }
81
81
  });
82
82
 
83
+ // replace package.json (different extension when eUI tools published to avoid npm publish clashing)
84
+ if (tools.isFileExists(path.join(remotePath, 'package.json_TO_REPLACE'))) {
85
+ tools.move(path.join(remotePath, 'package.json_TO_REPLACE'), path.join(remotePath, 'package.json'));
86
+ }
87
+
83
88
  // generating angular json
84
89
  const angularJsonPath = path.join(remotePath, 'angular.json');
85
90
  let angularJson = tools.getJsonFileContent(angularJsonPath);
@@ -1,2 +1,6 @@
1
1
  {
2
+ "@types/node": ">=14.14.10",
3
+ "https-proxy-agent": ">=2.2.3",
4
+ "mem": ">=4.3.0 <=8.1.1",
5
+ "zone.js": ">=0.11.5"
2
6
  }
@@ -13,7 +13,13 @@ const innerPackages = require('./packages');
13
13
 
14
14
  module.exports.installPackage = (pkgName) => {
15
15
 
16
- const pkg = configUtils.packages.getPackage(pkgName, false, true);
16
+ const { euiVersion } = tools.getArgs();
17
+
18
+ const pkg = configUtils.remotes.getRemote(pkgName, euiVersion);
19
+
20
+ if (!pkg) {
21
+ pkg = configUtils.packages.getPackage(pkgName, false, true);
22
+ }
17
23
 
18
24
  return Promise.resolve()
19
25
  .then(() => {