@eui/tools 6.12.16 → 6.12.17

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.12.16
1
+ 6.12.17
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.12.17 (2023-06-24)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * added ag-grid license injection for v15 up remotes - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([72e3f699](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/72e3f69973c2f8ae604a8fc000a418d1d6849ad4))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.12.16 (2023-06-24)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.16",
3
+ "version": "6.12.17",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -0,0 +1,15 @@
1
+ import { enableProdMode } from '@angular/core';
2
+ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
+ import { AppModule } from './app/module';
4
+ import { environment } from './environments/environment';
5
+ if (environment.production) {
6
+ enableProdMode();
7
+ }
8
+
9
+ import { LicenseManager } from 'ag-grid-enterprise';
10
+ // tslint:disable-next-line
11
+ LicenseManager.setLicenseKey(@ag-grid-license@);
12
+
13
+ platformBrowserDynamic()
14
+ .bootstrapModule(AppModule)
15
+ .catch(err => console.log(err));
@@ -192,6 +192,11 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
192
192
  if (!remote.skeletonConfig.options) {
193
193
  definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers })');
194
194
 
195
+ // ag-grid license specific main.ts
196
+ // license token is replaced at post-install, we get it from the remote root UI pkg assets at specific location
197
+ if (remote.skeletonConfig.aggridLicenseInjection) {
198
+ tools.copy(optionAgGridPath, remoteSrcPath);
199
+ }
195
200
 
196
201
  // if options, all options are checked and default modules defs are injected following certain conditions
197
202
  } else {
@@ -247,12 +252,6 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
247
252
  }
248
253
  tools.replaceInPath(remoteSrcPath, '<!-- BLOCK_CONTAINER_PLACEHOLDER -->', blockContainerPlaceholder);
249
254
  }
250
-
251
- // ag-grid license specific main.ts
252
- // license token is replaced at post-install, we get it from the remote root UI pkg assets at specific location
253
- if (remote.skeletonConfig.options.aggridLicenseInjection) {
254
- tools.copy(optionAgGridPath, remoteSrcPath);
255
- }
256
255
  }
257
256
 
258
257
  // replace option in module.ts placeholders
@@ -184,14 +184,14 @@ module.exports.installDeps = (pkg, envTarget, compositeType) => {
184
184
  return;
185
185
  }
186
186
 
187
- if (!pkg.skeletonConfig.options) {
188
- return;
189
- }
190
-
191
- if (pkg.skeletonConfig.options.aggridLicenseInjection) {
187
+ if (pkg.skeletonConfig.aggridLicenseInjection) {
192
188
  return Promise.resolve()
193
189
  .then(() => {
194
- const rootPkgLicensePath = path.join(pkg.paths.repoNodeModules, 'assets', 'ag-grid-license', 'license.json');
190
+ const rootPkgLicensePath = path.join(
191
+ pkg.paths.repoNodeModules,
192
+ pkg.skeletonConfig.rootNpmPkg,
193
+ 'assets', 'ag-grid-license', 'license.json'
194
+ );
195
195
 
196
196
  if (!tools.isFileExists(rootPkgLicensePath)) {
197
197
  throw 'NO_LICENSE_FILE_FOUND';