@eui/tools 4.15.14 → 4.16.3

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.
Files changed (36) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +48 -0
  3. package/bin/eui-scripts.js +0 -4
  4. package/global.test.js +1 -4
  5. package/package.json +3 -3
  6. package/sandbox.js +10 -3
  7. package/scripts/csdr/config/packages.js +28 -0
  8. package/scripts/csdr/init/init-utils.js +39 -0
  9. package/scripts/csdr/init/init.js +6 -0
  10. package/scripts/csdr/init/resources/13.x/resolutions.json +15 -0
  11. package/scripts/csdr/install/build-package.js +0 -84
  12. package/scripts/csdr/install/common.js +0 -16
  13. package/scripts/csdr/metadata/app.js +3 -3
  14. package/scripts/csdr/release/package/backend.js +26 -0
  15. package/scripts/csdr/release/package/common.js +1 -1
  16. package/scripts/csdr/release/package/release-package.js +4 -0
  17. package/scripts/csdr/release/package/ui.js +84 -1
  18. package/scripts/csdr/sync/sync-utils.js +7 -4
  19. package/scripts/csdr/version/package.js +2 -1
  20. package/scripts/utils/build/app/build-app-utils.js +2 -2
  21. package/scripts/utils/build/package/element.js +2 -2
  22. package/scripts/utils/notification/common.js +5 -0
  23. package/scripts/utils/notification/mail-utils.js +3 -0
  24. package/scripts/utils/notification/mailstack.js +3 -5
  25. package/scripts/utils/notification/package.js +0 -2
  26. package/scripts/utils/notification/slack-utils.js +6 -7
  27. package/scripts/utils/pre-build/injection/config.js +29 -30
  28. package/scripts/utils/pre-build/injection/externals.js +6 -0
  29. package/scripts/utils/serve/app.js +6 -3
  30. package/scripts/utils/tools.js +362 -304
  31. package/bin/scripts/csdr-jira-update.js +0 -12
  32. package/bin/scripts/csdr-migrate-package.js +0 -17
  33. package/bin/scripts/e2e-app.js +0 -62
  34. package/scripts/csdr/init/resources/yarn-eui13.lock +0 -15857
  35. package/scripts/migration/eui8-migration.js +0 -94
  36. package/scripts/migration/migrate-utils.js +0 -191
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- const csdrJiraUpdate = require('../../scripts/csdr/jira/update');
4
-
5
- Promise.resolve()
6
- .then(() => {
7
- return csdrJiraUpdate.update();
8
- })
9
- .catch((e) => {
10
- console.log(e);
11
- process.exit(1);
12
- });
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- const tools = require('../../scripts/utils/tools');
4
- const configUtils = require('../../scripts/csdr/config/config-utils');
5
- const migrateUtils = require('../../scripts/migration/migrate-utils');
6
-
7
- Promise.resolve()
8
- .then(() => {
9
- const pkg = configUtils.packages.getPackage();
10
- tools.logInfo(`Migrating package : ${pkg.name}...`);
11
- return migrateUtils.migratePackage(pkg.name);
12
- })
13
- .catch((e) => {
14
- tools.logError('ERROR!!! See above for errors.');
15
- console.error(e);
16
- process.exit(1);
17
- });
@@ -1,62 +0,0 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
- const execa = require('execa');
5
-
6
- const tools = require('../../scripts/utils/tools');
7
- const configUtils = require('../../scripts/utils/config-utils');
8
-
9
- let { configuration, baseHref, host, proxyConfig, maxSpaceSize } = tools.getArgs();
10
-
11
- const defaultProject = configUtils.projects.getProject();
12
- const defaultProjectPath = path.join(process.cwd(), defaultProject.folder);
13
-
14
- const ng = path.resolve(process.cwd(), 'node_modules', '@angular', 'cli', 'bin', 'ng');
15
-
16
- console.log('Provided arguments:\n');
17
- console.log(`configuration=${configuration}, baseHref=${baseHref}, host=${host}`);
18
-
19
-
20
- Promise.resolve()
21
- .then(() => {
22
- tools.logTitle(`Serving application : ${defaultProject.name}...`);
23
- })
24
- .then(() => {
25
- return configUtils.registerAngularProjectDef(defaultProject);
26
- })
27
- .then(() => {
28
- let args;
29
-
30
- if (maxSpaceSize) {
31
- args = ['--max_old_space_size=4096', ng, 'e2e', defaultProject.name];
32
- } else {
33
- args = [ng, 'e2e', defaultProject.name];
34
- }
35
-
36
- // var args = [ng, 'serve', defaultProject.name];
37
-
38
- if (configuration) {
39
- args.push(`--configuration=${configuration}`);
40
- }
41
-
42
- if (proxyConfig) {
43
- args.push(`--proxy-config=${proxyConfig}`);
44
- }
45
-
46
- if (baseHref) {
47
- args.push(`--base-href=${baseHref}`);
48
- }
49
-
50
- if (host) {
51
- args.push(`--host=${host}`);
52
- }
53
-
54
- tools.logInfo(`ng e2e with args ${args}`);
55
-
56
- return execa('node', args, { cwd: defaultProjectPath, stdio: 'inherit' });
57
- })
58
- .catch((e) => {
59
- tools.logError('ERROR during execution, see below');
60
- console.error(e);
61
- process.exit(1);
62
- });