@eui/tools 6.3.6 → 6.3.8

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.3.6
1
+ 6.3.8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## 6.3.8 (2023-02-01)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * updated v10 resolutions sync following yarn audit - MWP-8812 [MWP-8812](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8812) ([9cbe42ac](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9cbe42acbf42f55bf2c28276e8c131039b2f7a77))
7
+ ##### Bug Fixes
8
+
9
+ * **other:**
10
+ * updated 10.x resolutions - MWP-8812 [MWP-8812](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8812) ([1b7afbab](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1b7afbab120eefec74cf5bf12a31d93e64781d03))
11
+
12
+ * * *
13
+ * * *
14
+ ## 6.3.7 (2023-02-01)
15
+
16
+ ##### Chores
17
+
18
+ * **cli:**
19
+ * adapted remote init for virtual setup - MWP-8812 [MWP-8812](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8812) ([6090688e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6090688ef793d7efbe467b7a1bcbea2b50dfdefd))
20
+
21
+ * * *
22
+ * * *
1
23
  ## 6.3.6 (2023-02-01)
2
24
 
3
25
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.3.6",
3
+ "version": "6.3.8",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -74,6 +74,10 @@ const replaceContent = (targetPath, name, scope, fullName) => {
74
74
  const generateVirtualRemote = ({fullName, targetPath, rootPackagePath, pkg, args = constants.DEFAULT_CONFIG}) => {
75
75
 
76
76
  tools.logInfo('Generate virtual remote');
77
+ console.log(fullName);
78
+ console.log(targetPath);
79
+ console.log(rootPackagePath);
80
+ console.log(pkg);
77
81
 
78
82
  const remoteTargetPath = path.join(process.cwd(), 'packages', 'csdr-remotes-config', 'assets', fullName);
79
83
 
@@ -90,6 +94,8 @@ const generateVirtualRemote = ({fullName, targetPath, rootPackagePath, pkg, args
90
94
  // for the moment the virtual remotes are only activated for v15+
91
95
  if (args.pkgFrontendVersion == constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
92
96
  tools.copydir(constants.FRONTEND_SKELETON_REMOTE_EUI15_PATH, targetPath, true);
97
+ } else if (args.pkgFrontendVersion == constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10) {
98
+ tools.copydir(constants.FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
93
99
  }
94
100
 
95
101
  // REPLACING PLACEHOLDERS
@@ -100,7 +106,8 @@ const generateVirtualRemote = ({fullName, targetPath, rootPackagePath, pkg, args
100
106
  tools.logInfo('Adding CSDR config entry');
101
107
  configUtils.register.registerCsdrPackage(
102
108
  pkg, args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE,
103
- args.pkgScope, args.pkgName, args.pkgFrontendVersion
109
+ args.pkgScope, args.pkgName, args.pkgFrontendVersion,
110
+ args.isVirtualRemote
104
111
  );
105
112
 
106
113
  // REPLACE EXTENSIONS (package.json, .gitignore as the interfere with build of tools if release without name changes)
@@ -294,7 +301,7 @@ module.exports.generate = (args = constants.DEFAULT_CONFIG) => {
294
301
 
295
302
  return Promise.resolve()
296
303
  .then(() => {
297
- if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15 && args.isVirtualRemote) {
304
+ if (args.isVirtualRemote) {
298
305
  return generateVirtualRemote({fullName, targetPath, rootPackagePath, pkg, args});
299
306
  } else {
300
307
  return generateDefault({fullName, targetPath, rootPackagePath, pkg, args});
@@ -126,6 +126,19 @@ module.exports.prompt = () => {
126
126
  );
127
127
  }
128
128
  },
129
+ {
130
+ name: 'isVirtualRemote',
131
+ type: 'confirm',
132
+ message: 'Is this a virtual remote ?',
133
+ default: constants.DEFAULT_CONFIG.isVirtualRemote,
134
+ when: function (answers) {
135
+ return (
136
+ answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
137
+ answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE &&
138
+ answers.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10
139
+ );
140
+ }
141
+ },
129
142
  {
130
143
  name: 'isCsdrRepo',
131
144
  type: 'confirm',
@@ -0,0 +1,9 @@
1
+ {
2
+ "styles": [
3
+ "./node_modules/@eui/styles/dist/styles/eui-primeng.css",
4
+ "./node_modules/@eui/styles/dist/styles/eui.css",
5
+ "./node_modules/@eui/styles/dist/styles/eui-next.css",
6
+ "./node_modules/@eui/styles/dist/styles/eui-components.css",
7
+ "./node_modules/@eui/styles/dist/assets/fonts/font-awesome/font-awesome.min.css"
8
+ ]
9
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "base": {
3
+ },
4
+ "composite": {
5
+ "@eui/deps-base": "^10.0.0",
6
+ "@module.scope@/@module.name@": "^1.0.0",
7
+ "@csdr/core": "^2.0.0",
8
+ "@csdr/integration": "^2.0.0"
9
+ },
10
+ "INT": {
11
+ },
12
+ "ACC": {
13
+ },
14
+ "DLT": {
15
+ },
16
+ "TRN": {
17
+ },
18
+ "PROD": {
19
+ }
20
+ }
@@ -66,7 +66,7 @@ module.exports.registerCsdrProject = (name, isFullSkeleton) => {
66
66
 
67
67
  // Register newly created package
68
68
 
69
- module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName, euiVersionNumber) => {
69
+ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName, euiVersionNumber, isVirtualRemote) => {
70
70
 
71
71
  const csdrConfigPackage = {
72
72
  "name": "@module.full.name@",
@@ -111,7 +111,31 @@ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName,
111
111
  }
112
112
  }
113
113
 
114
- const csdrConfigRemotePackageV15 = {
114
+
115
+ const csdrConfigRemotePackageV10Virtual = {
116
+ "npmPkg": "@module.npmPkg.name@",
117
+ "euiVersion": "10.x",
118
+ "build": {
119
+ "compiledTranslations": true,
120
+ "translationScopes": "eui,csdr,cc,mywp",
121
+ "envTargetActive": true,
122
+ "skipLint": true,
123
+ "skipTest": true,
124
+ "sonarScanner": false
125
+ },
126
+ "release": {
127
+ "team": "cc-ui-rm"
128
+ },
129
+ "slack": {
130
+ "channel": "csdr-timeline-mwp-remotes-cc"
131
+ },
132
+ "externalSources": {
133
+ "npmPkg": "@module.rootPkg.scope@/@module.rootPkg.name@",
134
+ "folder": "assets/remote-sources"
135
+ }
136
+ }
137
+
138
+ const csdrConfigRemotePackageV15Virtual = {
115
139
  "npmPkg": "@module.npmPkg.name@",
116
140
  "euiVersion": "15.x",
117
141
  "build": {
@@ -140,7 +164,9 @@ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName,
140
164
 
141
165
  if (isRemote) {
142
166
  if (euiVersionNumber >= 15) {
143
- packageDef = JSON.stringify(csdrConfigRemotePackageV15);
167
+ packageDef = JSON.stringify(csdrConfigRemotePackageV15Virtual);
168
+ } else if (euiVersionNumber >= 10 && isVirtualRemote) {
169
+ packageDef = JSON.stringify(csdrConfigRemotePackageV10Virtual);
144
170
  } else {
145
171
  packageDef = JSON.stringify(csdrConfigRemotePackage);
146
172
  }
@@ -155,7 +181,7 @@ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName,
155
181
  replaceModule = tools.replaceAll(replaceModule, '@module.rootPkg.name@', rootPkgName);
156
182
 
157
183
  let file = path.join(process.cwd(), '.csdr', '.euirc-csdr-packages.json');
158
- if (isRemote && euiVersionNumber >= 15) {
184
+ if (isRemote && isVirtualRemote) {
159
185
  file = path.join(process.cwd(), '.csdr', '.euirc-csdr-remotes.json');
160
186
  }
161
187
  let jsonFile = require(file);
@@ -0,0 +1,90 @@
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": "ngx-build-plus:build",
15
+ "options": {
16
+ "deployUrl": "/mwp/assets/elements/@remote.name@/bundles/",
17
+ "outputPath": "dist",
18
+ "index": "src/index.html",
19
+ "main": "src/main.ts",
20
+ "polyfills": "src/polyfills.ts",
21
+ "tsConfig": "tsconfig.app.json",
22
+ "scripts": [
23
+ "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
24
+ ],
25
+ "assets": [
26
+ "src/assets"
27
+ ],
28
+ "styles": [
29
+ "./node_modules/@eui/styles/dist/styles/eui-primeng.css",
30
+ "./node_modules/@eui/styles/dist/styles/eui.css",
31
+ "./node_modules/@eui/styles/dist/styles/eui-next.css",
32
+ "./node_modules/@eui/styles/dist/styles/eui-components.css",
33
+ "./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.css",
34
+ "./node_modules/@eui/styles/dist/assets/fonts/font-awesome/font-awesome.min.css",
35
+ "./node_modules/@eui/styles/dist/assets/fonts/flag-icons/css/flag-icon.min.css"
36
+ ]
37
+ },
38
+ "configurations": {
39
+ "production": {
40
+ "fileReplacements": [
41
+ {
42
+ "replace": "src/environments/environment.ts",
43
+ "with": "src/environments/environment.prod.ts"
44
+ }
45
+ ],
46
+ "optimization": true,
47
+ "outputHashing": "all",
48
+ "sourceMap": false,
49
+ "extractCss": true,
50
+ "namedChunks": false,
51
+ "aot": true,
52
+ "extractLicenses": true,
53
+ "vendorChunk": false,
54
+ "buildOptimizer": true
55
+ },
56
+ "serve-dist": {
57
+ "outputPath": "serve-dist",
58
+ "wath": true
59
+ }
60
+ }
61
+ },
62
+ "serve": {
63
+ "builder": "./node_modules/@angular-devkit/build-angular:dev-server",
64
+ "options": {
65
+ "deployUrl": "/assets/elements/@remote.name@/bundles/",
66
+ "browserTarget": "@remote.name@:build:serve-dist"
67
+ },
68
+ "configurations": {
69
+ "production": {
70
+ "browserTarget": "@remote.name@:build:production"
71
+ }
72
+ }
73
+ },
74
+ "test": {
75
+ "builder": "./node_modules/@angular-devkit/build-angular:karma",
76
+ "options": {
77
+ "main": "src/test.ts",
78
+ "polyfills": "src/polyfills.ts",
79
+ "tsConfig": "tsconfig.spec.json",
80
+ "karmaConfig": "karma.conf.js",
81
+ "scripts": []
82
+ }
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "cli": {
88
+ "analytics": false
89
+ }
90
+ }
@@ -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,10 @@
1
+ {
2
+ "name": "generated",
3
+ "version": "1.0.0-SNAPSHOT.0",
4
+ "files": [
5
+ "bundles"
6
+ ],
7
+ "dependencies": {},
8
+ "resolutions": {
9
+ }
10
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/app",
5
+ "module": "es2015",
6
+ "target": "es2015",
7
+ "types": [
8
+ "node"
9
+ ],
10
+ "paths": {
11
+ "os": ["./node_modules/empty-module/index.js"],
12
+ "node-fetch": ["./node_modules/empty-module/index.js"],
13
+ "zipkin": ["./node_modules/zipkin/dist/zipkin.js"]
14
+ }
15
+ },
16
+ "exclude": [
17
+ "src/test.ts",
18
+ "**/*.spec.ts"
19
+ ]
20
+ }
@@ -61,8 +61,9 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
61
61
 
62
62
  // constructing the remote folder
63
63
  const remotePath = path.join(process.cwd(), 'remotes', remote.name);
64
- const remoteSkeletonPath = path.join(__dirname, 'remotes', remote.euiVersion, 'base');
65
- const remoteSkeletonFullPath = path.join(__dirname, 'remotes', remote.euiVersion, 'full');
64
+ const remoteSkeletonRootPath = path.join(__dirname, 'remotes', remote.euiVersion);
65
+ const remoteSkeletonPath = path.join(remoteSkeletonRootPath, 'base');
66
+ const remoteSkeletonFullPath = path.join(remoteSkeletonRootPath, 'full');
66
67
 
67
68
  tools.logInfo(`Copying base sources => ${remoteSkeletonPath} ==> ${remotePath}`);
68
69
 
@@ -0,0 +1,5 @@
1
+ {
2
+ "socket.io-parser": ">=3.3.3",
3
+ "minimist": ">=1.2.6",
4
+ "xmlhttprequest-ssl": ">=1.6.1"
5
+ }