zcatalyst-cli 1.9.1 → 1.11.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.
Files changed (189) hide show
  1. package/README.md +3 -3
  2. package/docs/.DS_Store +0 -0
  3. package/docs/client-utils.toml +5 -0
  4. package/docs/command_needs/auth.toml +5 -0
  5. package/docs/commands/iac/export.toml +4 -0
  6. package/docs/commands/iac/import.toml +4 -0
  7. package/docs/commands/iac/status.toml +4 -0
  8. package/docs/commands/project/use.toml +6 -0
  9. package/docs/iac/status/bundle.toml +4 -0
  10. package/docs/plugin-loader.toml +4 -0
  11. package/docs/serve/server/index.toml +4 -0
  12. package/docs/serve/server/lib/web_client/server.toml +4 -0
  13. package/lib/api-timer.js +81 -0
  14. package/lib/apig-utils.js +17 -14
  15. package/lib/archiver.js +83 -45
  16. package/lib/authentication/login.js +4 -2
  17. package/lib/bin/catalyst.js +0 -1
  18. package/lib/client-utils.js +28 -26
  19. package/lib/client.js +0 -3
  20. package/lib/command_needs/auth.js +12 -3
  21. package/lib/command_needs/rc.js +12 -7
  22. package/lib/commands/apig/status.js +6 -4
  23. package/lib/commands/client/delete.js +3 -4
  24. package/lib/commands/client/setup.js +1 -1
  25. package/lib/commands/deploy.js +3 -1
  26. package/lib/commands/ds/export.js +3 -1
  27. package/lib/commands/ds/import.js +3 -1
  28. package/lib/commands/ds/status.js +145 -149
  29. package/lib/commands/event/generate/index.js +4 -13
  30. package/lib/commands/functions/config.js +1 -1
  31. package/lib/commands/functions/setup.js +1 -1
  32. package/lib/commands/help.js +1 -23
  33. package/lib/commands/iac/export.js +85 -0
  34. package/lib/commands/iac/import.js +210 -0
  35. package/lib/commands/iac/pack.js +129 -0
  36. package/lib/commands/iac/status.js +63 -0
  37. package/lib/commands/index.js +4 -0
  38. package/lib/commands/init.js +34 -27
  39. package/lib/commands/project/list.js +10 -6
  40. package/lib/commands/project/use.js +42 -25
  41. package/lib/commands/pull.js +1 -1
  42. package/lib/commands/serve.js +2 -1
  43. package/lib/deploy/features/functions/index.js +2 -1
  44. package/lib/deploy/index.js +3 -1
  45. package/lib/endpoints/lib/iac.js +134 -0
  46. package/lib/endpoints/lib/sdk.js +2 -2
  47. package/lib/error.js +33 -3
  48. package/lib/errorOut.js +4 -3
  49. package/lib/fn-utils/lib/common.js +37 -16
  50. package/lib/fn-utils/lib/java.js +7 -9
  51. package/lib/fn-utils/lib/node.js +7 -1
  52. package/lib/iac/status/bundle.js +82 -0
  53. package/lib/iac/status/deploy.js +74 -0
  54. package/lib/iac/status/util/index.js +26 -0
  55. package/lib/index.js +8 -14
  56. package/lib/init/dependencies/npm-install.js +2 -9
  57. package/lib/init/features/client/index.js +47 -0
  58. package/lib/init/features/client/initializers/angular.js +106 -0
  59. package/lib/init/features/client/initializers/basic.js +50 -0
  60. package/lib/init/features/client/initializers/lyte.js +61 -0
  61. package/lib/init/features/client/initializers/react.js +77 -0
  62. package/lib/init/features/functions/languages/java.js +2 -5
  63. package/lib/init/features/functions/languages/node.js +5 -6
  64. package/lib/init/features/index.js +18 -6
  65. package/lib/init/features/project.js +72 -34
  66. package/lib/init/util/client.js +96 -0
  67. package/lib/init/util/functions.js +20 -0
  68. package/lib/init/util/project.js +35 -0
  69. package/lib/internal/api.js +6 -9
  70. package/lib/internal/command.js +6 -3
  71. package/lib/internal/config.js +7 -4
  72. package/lib/migration/index.js +10 -6
  73. package/lib/option-filter.js +4 -1
  74. package/lib/optional-import.js +11 -25
  75. package/lib/plugin-loader.js +8 -2
  76. package/lib/port-resolver.js +20 -16
  77. package/lib/prompt/index.js +92 -0
  78. package/lib/prompt/types/file-path.js +95 -0
  79. package/lib/pull/features/client.js +1 -1
  80. package/lib/pull/features/functions/index.js +5 -7
  81. package/lib/pull/index.js +4 -1
  82. package/lib/serve/features/index.js +3 -1
  83. package/lib/serve/index.js +6 -1
  84. package/lib/serve/server/index.js +52 -8
  85. package/lib/serve/server/lib/master.js +24 -12
  86. package/lib/serve/server/lib/web_client/index.js +30 -0
  87. package/lib/serve/server/lib/web_client/server.js +171 -0
  88. package/lib/shell/dependencies/http-functions.js +1 -1
  89. package/lib/shell/index.js +3 -1
  90. package/lib/track.js +3 -1
  91. package/lib/util_modules/char.js +1 -1
  92. package/lib/util_modules/config/lib/apig.js +2 -1
  93. package/lib/util_modules/constants/index.js +5 -1
  94. package/lib/util_modules/constants/lib/file-names.js +2 -1
  95. package/lib/util_modules/constants/lib/iac.js +8 -0
  96. package/lib/util_modules/constants/lib/placeholders.js +1 -0
  97. package/lib/util_modules/constants/lib/plugin.js +28 -0
  98. package/lib/util_modules/constants/lib/regex.js +2 -1
  99. package/lib/util_modules/constants/lib/scopes.js +5 -0
  100. package/lib/util_modules/constants/lib/template.js +11 -1
  101. package/lib/util_modules/constants/lib/urls.js +12 -4
  102. package/lib/util_modules/constants/project.js +6 -0
  103. package/lib/util_modules/{contextHelp.js → context-help.js} +5 -1
  104. package/lib/util_modules/env.js +14 -16
  105. package/lib/util_modules/fs/lib/async.js +29 -22
  106. package/lib/util_modules/fs/utils.js +8 -0
  107. package/lib/util_modules/global-space.js +99 -0
  108. package/lib/util_modules/js.js +6 -0
  109. package/lib/util_modules/option.js +5 -1
  110. package/lib/util_modules/parser/toml.js +5 -1
  111. package/lib/util_modules/project.js +3 -0
  112. package/lib/util_modules/shell.js +9 -8
  113. package/lib/winston.js +1 -1
  114. package/package.json +11 -5
  115. package/templates/.DS_Store +0 -0
  116. package/templates/iacSuccess.html +391 -0
  117. package/templates/init/.DS_Store +0 -0
  118. package/templates/init/client/.DS_Store +0 -0
  119. package/templates/init/client/{client-package.json → basic/client-package.json} +0 -0
  120. package/templates/init/client/{index.html → basic/index.html} +0 -0
  121. package/templates/init/client/{main.css → basic/main.css} +0 -0
  122. package/templates/init/client/{main.js → basic/main.js} +0 -0
  123. package/templates/init/client/lyte/build/build.js +301 -0
  124. package/templates/init/client/lyte/build/scripts/cliDownloadScript.js +54 -0
  125. package/templates/init/client/lyte/client-package.json +5 -0
  126. package/templates/init/client/lyte/components/javascript/welcome-comp.js +13 -0
  127. package/templates/init/client/lyte/components/styles/welcome-comp.css +0 -0
  128. package/templates/init/client/lyte/components/templates/welcome-comp.html +8 -0
  129. package/templates/init/client/lyte/data-store/adapters/.gitkeep +0 -0
  130. package/templates/init/client/lyte/data-store/models/.gitkeep +0 -0
  131. package/templates/init/client/lyte/data-store/serializers/.gitkeep +0 -0
  132. package/templates/init/client/lyte/index.html +17 -0
  133. package/templates/init/client/lyte/package.json +12 -0
  134. package/templates/init/client/lyte/router.js +14 -0
  135. package/templates/init/client/lyte/routes/index.js +54 -0
  136. package/templates/init/client/react/.DS_Store +0 -0
  137. package/templates/init/client/react/react_js/package.json +11 -0
  138. package/templates/init/client/react/react_js/template/README.md +70 -0
  139. package/templates/init/client/react/react_js/template/client-package.json +5 -0
  140. package/templates/init/client/react/react_js/template/gitignore +23 -0
  141. package/templates/init/client/react/react_js/template/public/favicon.ico +0 -0
  142. package/templates/init/client/react/react_js/template/public/index.html +43 -0
  143. package/templates/init/client/react/react_js/template/public/logo192.png +0 -0
  144. package/templates/init/client/react/react_js/template/public/logo512.png +0 -0
  145. package/templates/init/client/react/react_js/template/public/manifest.json +25 -0
  146. package/templates/init/client/react/react_js/template/public/robots.txt +3 -0
  147. package/templates/init/client/react/react_js/template/src/App.css +38 -0
  148. package/templates/init/client/react/react_js/template/src/App.js +25 -0
  149. package/templates/init/client/react/react_js/template/src/App.test.js +8 -0
  150. package/templates/init/client/react/react_js/template/src/index.css +13 -0
  151. package/templates/init/client/react/react_js/template/src/index.js +17 -0
  152. package/templates/init/client/react/react_js/template/src/logo.svg +1 -0
  153. package/templates/init/client/react/react_js/template/src/reportWebVitals.js +13 -0
  154. package/templates/init/client/react/react_js/template/src/setupTests.js +5 -0
  155. package/templates/init/client/react/react_js/template.json +13 -0
  156. package/templates/init/client/react/react_ts/package.json +11 -0
  157. package/templates/init/client/react/react_ts/template/README.md +46 -0
  158. package/templates/init/client/react/react_ts/template/client-package.json +5 -0
  159. package/templates/init/client/react/react_ts/template/gitignore +23 -0
  160. package/templates/init/client/react/react_ts/template/public/favicon.ico +0 -0
  161. package/templates/init/client/react/react_ts/template/public/index.html +43 -0
  162. package/templates/init/client/react/react_ts/template/public/logo192.png +0 -0
  163. package/templates/init/client/react/react_ts/template/public/logo512.png +0 -0
  164. package/templates/init/client/react/react_ts/template/public/manifest.json +25 -0
  165. package/templates/init/client/react/react_ts/template/public/robots.txt +3 -0
  166. package/templates/init/client/react/react_ts/template/src/App.css +38 -0
  167. package/templates/init/client/react/react_ts/template/src/App.test.tsx +9 -0
  168. package/templates/init/client/react/react_ts/template/src/App.tsx +26 -0
  169. package/templates/init/client/react/react_ts/template/src/index.css +13 -0
  170. package/templates/init/client/react/react_ts/template/src/index.tsx +17 -0
  171. package/templates/init/client/react/react_ts/template/src/logo.svg +1 -0
  172. package/templates/init/client/react/react_ts/template/src/reportWebVitals.ts +15 -0
  173. package/templates/init/client/react/react_ts/template/src/setupTests.ts +5 -0
  174. package/templates/init/client/react/react_ts/template.json +18 -0
  175. package/templates/init/functions/java/integ/cliq/com/handlers/BotHandler.java +94 -109
  176. package/templates/init/functions/java/integ/cliq/com/handlers/CommandHandler.java +20 -27
  177. package/templates/init/functions/java/integ/cliq/com/handlers/FunctionHandler.java +143 -112
  178. package/templates/init/functions/java/integ/cliq/com/handlers/InstallationHandler.java +4 -7
  179. package/templates/init/functions/java/integ/cliq/com/handlers/InstallationValidator.java +4 -7
  180. package/templates/init/functions/java/integ/cliq/com/handlers/MessageActionHandler.java +10 -12
  181. package/templates/init/functions/java/integ/cliq/com/handlers/WidgetHandler.java +100 -66
  182. package/templates/init/functions/java/integ/cliq/sample.java +5 -7
  183. package/templates/init/functions/node/integ/cliq/handlers/command-handler.js +0 -1
  184. package/templates/init/functions/node/integ/cliq/handlers/function-handler.js +46 -0
  185. package/templates/init/functions/node/integ/cliq/handlers/widget-handler.js +31 -0
  186. package/templates/web-socket.txt +21 -0
  187. package/lib/init/features/client.js +0 -51
  188. package/lib/prompt.js +0 -49
  189. package/lib/serve/server/lib/client.js +0 -30
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.getYarnNodePth = exports.getNpmNodePth = void 0;
16
+ const shell_js_1 = require("./shell.js");
17
+ const plugin_js_1 = __importDefault(require("./constants/lib/plugin.js"));
18
+ const env_js_1 = require("./env.js");
19
+ const path_1 = require("path");
20
+ const index_js_1 = require("./fs/index.js");
21
+ const runtime_store_js_1 = __importDefault(require("../runtime-store.js"));
22
+ const logger_js_1 = require("./logger.js");
23
+ function getNpmNodePth() {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const cachedPath = runtime_store_js_1.default.get('npm.nodePath', false);
26
+ if (cachedPath) {
27
+ return cachedPath;
28
+ }
29
+ const spawnres = yield shell_js_1.spawn(plugin_js_1.default.mangaer.npm.command, plugin_js_1.default.mangaer.npm.opts, {
30
+ stdio: 'pipe'
31
+ }).ASYNC();
32
+ const nodePath = spawnres.stdout.replace(/\n/g, env_js_1.isWindows ? '\\node_modules' : '/lib/node_modules');
33
+ runtime_store_js_1.default.set('npm.nodePath', nodePath);
34
+ return nodePath;
35
+ });
36
+ }
37
+ exports.getNpmNodePth = getNpmNodePth;
38
+ function getYarnNodePth() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const cachedPath = runtime_store_js_1.default.get('yarn.nodePath', false);
41
+ if (cachedPath) {
42
+ return cachedPath;
43
+ }
44
+ const spawnres = yield shell_js_1.spawn(plugin_js_1.default.mangaer.yarn.command, plugin_js_1.default.mangaer.yarn.opts, {
45
+ stdio: 'pipe'
46
+ }).ASYNC();
47
+ const nodePath = spawnres.stdout.replace(/\n/g, path_1.sep + 'node_modules');
48
+ runtime_store_js_1.default.set('yarn.nodePath', nodePath);
49
+ return nodePath;
50
+ });
51
+ }
52
+ exports.getYarnNodePth = getYarnNodePth;
53
+ function findNpmPkg(pkgName, fallback) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ try {
56
+ const nodeModulesPath = yield getNpmNodePth().catch((err) => logger_js_1.debug(err));
57
+ const pkgPath = path_1.join(nodeModulesPath, pkgName);
58
+ return (yield index_js_1.ASYNC.dirExists(pkgPath)) ? pkgPath : fallback;
59
+ }
60
+ catch (e) {
61
+ logger_js_1.debug('NPM pkg find error');
62
+ logger_js_1.debug(e);
63
+ }
64
+ return fallback;
65
+ });
66
+ }
67
+ function findYarnPkg(pkgName, fallback) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ try {
70
+ const nodeModulesPath = yield getYarnNodePth().catch((err) => logger_js_1.debug(err));
71
+ const pkgPath = path_1.join(nodeModulesPath, pkgName);
72
+ return (yield index_js_1.ASYNC.dirExists(pkgPath)) ? pkgPath : fallback;
73
+ }
74
+ catch (e) {
75
+ logger_js_1.debug('YARN pkg find error');
76
+ logger_js_1.debug(e);
77
+ }
78
+ return fallback;
79
+ });
80
+ }
81
+ function findPkg(pkgName, fallback = false, pkgManager) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ if (pkgManager) {
84
+ return pkgManager === 'npm'
85
+ ? findNpmPkg(pkgName, fallback)
86
+ : findYarnPkg(pkgName, fallback);
87
+ }
88
+ const npmPkg = yield findNpmPkg(pkgName, fallback);
89
+ if (npmPkg !== null) {
90
+ return npmPkg;
91
+ }
92
+ const yarnPkg = yield findYarnPkg(pkgName, fallback);
93
+ if (yarnPkg !== null) {
94
+ return yarnPkg;
95
+ }
96
+ return fallback;
97
+ });
98
+ }
99
+ exports.default = findPkg;
@@ -42,5 +42,11 @@ exports.JS = lodash_1.default.mixin({
42
42
  exports.JS.removeNullAndUndefined(val)) ||
43
43
  ((val === null || val === undefined) && delete copy[key]));
44
44
  return copy;
45
+ },
46
+ parseJSON: (str) => {
47
+ try {
48
+ return JSON.parse(str);
49
+ }
50
+ catch (e) { }
45
51
  }
46
52
  });
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getGlobalOptionValue = exports.setGlobalOption = exports.getOptionValue = exports.getCurrentCommand = void 0;
6
+ exports.getUnknownOpts = exports.getGlobalOptionValue = exports.setGlobalOption = exports.getOptionValue = exports.getCurrentCommand = void 0;
7
7
  const runtime_store_1 = __importDefault(require("../runtime-store"));
8
8
  function getCurrentCommand(fallback) {
9
9
  return runtime_store_1.default.get('opts._name', fallback);
@@ -21,3 +21,7 @@ function getGlobalOptionValue(key, fallback) {
21
21
  return runtime_store_1.default.get('opts.globalOpts.' + key, fallback);
22
22
  }
23
23
  exports.getGlobalOptionValue = getGlobalOptionValue;
24
+ function getUnknownOpts(fallback) {
25
+ return runtime_store_1.default.get('opts.unknownOpts', fallback);
26
+ }
27
+ exports.getUnknownOpts = getUnknownOpts;
@@ -10,6 +10,10 @@ exports.default = (str) => {
10
10
  return toml_1.parse(str);
11
11
  }
12
12
  catch (e) {
13
- throw new error_1.default('TOML Parsing error on line ' + e.line + ', column ' + e.column + ': ' + e.message, { exit: 2 });
13
+ const err = error_1.default.getErrorInstance(e, {
14
+ message: 'TOML Parsing error'
15
+ });
16
+ err.exit = 2;
17
+ throw err;
14
18
  }
15
19
  };
@@ -199,6 +199,9 @@ function transformProject(projectObj) {
199
199
  name: value.project_domain_name
200
200
  };
201
201
  break;
202
+ case 'project_type':
203
+ key = 'type';
204
+ break;
202
205
  default:
203
206
  break;
204
207
  }
@@ -49,25 +49,26 @@ function spawn(command, opts, _a = {}) {
49
49
  stdio,
50
50
  shell }, otherOpts));
51
51
  return new Promise((res, rej) => {
52
+ var _a;
52
53
  let message = '';
53
- childProcess.on('error', (err) => {
54
- rej(err);
54
+ let stdout = '';
55
+ (_a = childProcess.stdout) === null || _a === void 0 ? void 0 : _a.on('data', (msg) => {
56
+ stdout += msg.toString();
55
57
  });
56
58
  childProcess.on('message', (msg) => {
57
59
  message += msg.toString();
58
- logger_1.debug(msg.toString());
59
60
  });
61
+ childProcess.on('error', (err) => rej(err));
60
62
  childProcess.on('exit', (code) => {
61
63
  if (code !== 0) {
62
64
  rej(code);
63
65
  }
64
- res(message);
66
+ res({ message, stdout });
65
67
  });
66
68
  });
67
69
  },
68
70
  RAW: () => {
69
- const child = cross_spawn_1.default(command, opts, Object.assign({ cwd, stdio, shell }, otherOpts));
70
- child.on('error', (err) => logger_1.debug(err));
71
+ const child = cross_spawn_1.default(command, opts, Object.assign({ cwd, stdio, shell }, otherOpts)).on('error', logger_1.debug);
71
72
  return child;
72
73
  }
73
74
  };
@@ -75,7 +76,7 @@ function spawn(command, opts, _a = {}) {
75
76
  exports.spawn = spawn;
76
77
  function which(commandName, { alwaysResolve = true }) {
77
78
  let cleanedCmd = commandName;
78
- if (env_1.isWindows()) {
79
+ if (env_1.isWindows) {
79
80
  const isPathName = /[\\]/.test(commandName);
80
81
  if (isPathName) {
81
82
  const dirname = '"' + path_1.default.dirname(commandName) + '"';
@@ -93,7 +94,7 @@ function which(commandName, { alwaysResolve = true }) {
93
94
  .replace(/\\'''/g, "\\'");
94
95
  }
95
96
  return new Promise((resolve, reject) => {
96
- if (env_1.isWindows()) {
97
+ if (env_1.isWindows) {
97
98
  if (/[\x00-\x1f<>:"|?*]/.test(commandName)) {
98
99
  alwaysResolve ? resolve(false) : reject('controll char test failed');
99
100
  }
package/lib/winston.js CHANGED
@@ -60,7 +60,7 @@ exports.logger = winston_1.createLogger({
60
60
  transports: [exports.transport.console],
61
61
  exitOnError: false
62
62
  });
63
- if (env_1.isPrimaryShell()) {
63
+ if (env_1.isWindows || env_1.isPrimaryShell()) {
64
64
  if (usage) {
65
65
  exports.logger.add(exports.transport.http_log);
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zcatalyst-cli",
3
- "version": "1.9.1",
3
+ "version": "1.11.1",
4
4
  "description": "Command Line Tool for CATALYST",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -9,6 +9,7 @@
9
9
  "engines": {
10
10
  "node": ">=12.0.0"
11
11
  },
12
+ "preferGlobal": true,
12
13
  "keywords": [
13
14
  "cli",
14
15
  "cloud",
@@ -30,17 +31,17 @@
30
31
  "chokidar": "^3.5.2",
31
32
  "cli-cursor": "^3.1.0",
32
33
  "cli-table3": "^0.6.0",
33
- "commander": "^8.1.0",
34
+ "commander": "^8.2.0",
34
35
  "conf": "^10.0.2",
35
36
  "cross-spawn": "^7.0.3",
36
37
  "express": "^4.17.1",
37
38
  "fs-extra": "^10.0.0",
38
- "global-dirs": "^3.0.0",
39
+ "fuzzy": "^0.1.3",
39
40
  "http-proxy": "^1.18.1",
40
41
  "inquirer": "^8.1.2",
42
+ "inquirer-autocomplete-prompt": "^1.4.0",
41
43
  "jszip": "^3.7.1",
42
44
  "lodash": "^4.17.21",
43
- "meant": "^2.0.1",
44
45
  "minimatch": "^3.0.4",
45
46
  "moment": "^2.29.1",
46
47
  "open": "^8.2.1",
@@ -52,7 +53,10 @@
52
53
  "toml": "^3.0.0",
53
54
  "update-notifier": "^5.1.0",
54
55
  "winston": "^3.3.3",
55
- "xml2js": "^0.4.23"
56
+ "ws": "^8.2.3",
57
+ "xml2js": "^0.4.23",
58
+ "yaml": "^1.10.2",
59
+ "zcatalyst-angular-schematics": "^0.0.1"
56
60
  },
57
61
  "devDependencies": {
58
62
  "@types/app-module-path": "^2.2.0",
@@ -62,6 +66,7 @@
62
66
  "@types/fs-extra": "^9.0.12",
63
67
  "@types/http-proxy": "^1.17.7",
64
68
  "@types/inquirer": "^7.3.3",
69
+ "@types/inquirer-autocomplete-prompt": "^1.3.3",
65
70
  "@types/jest": "^26.0.24",
66
71
  "@types/lodash": "^4.14.172",
67
72
  "@types/minimatch": "^3.0.5",
@@ -69,6 +74,7 @@
69
74
  "@types/request": "^2.48.7",
70
75
  "@types/semver": "^7.3.8",
71
76
  "@types/update-notifier": "^5.1.0",
77
+ "@types/ws": "^8.2.0",
72
78
  "@types/xml2js": "^0.4.9",
73
79
  "@typescript-eslint/eslint-plugin": "^4.29.1",
74
80
  "@typescript-eslint/parser": "^4.29.1",
Binary file
@@ -0,0 +1,391 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <title>Catalyst CLI</title>
8
+ <link rel="icon" href="data:;base64,iVBORw0KGgo=">
9
+ <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
10
+ <style media="screen">
11
+ html,
12
+ body {
13
+ height: 100%;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ }
18
+
19
+ body {
20
+ overflow: hidden;
21
+ }
22
+
23
+ .modalbox.success,
24
+ .modalbox.error {
25
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
26
+ transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
27
+ -webkit-border-radius: 2px;
28
+ -moz-border-radius: 2px;
29
+ border-radius: 2px;
30
+ background: #fff;
31
+ padding: 25px 25px 15px;
32
+ text-align: center;
33
+ }
34
+
35
+ .modalbox.success.animate .icon,
36
+ .modalbox.error.animate .icon {
37
+ -webkit-animation: fall-in 0.75s;
38
+ -moz-animation: fall-in 0.75s;
39
+ -o-animation: fall-in 0.75s;
40
+ animation: fall-in 0.75s;
41
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
42
+ }
43
+
44
+ .modalbox.success h1,
45
+ .modalbox.error h1 {
46
+ font-family: 'Montserrat', sans-serif;
47
+ }
48
+
49
+ .modalbox.success p,
50
+ .modalbox.error p {
51
+ font-family: 'Open Sans', sans-serif;
52
+ }
53
+
54
+ .modalbox.success button,
55
+ .modalbox.error button,
56
+ .modalbox.success button:active,
57
+ .modalbox.error button:active,
58
+ .modalbox.success button:focus,
59
+ .modalbox.error button:focus {
60
+ -webkit-transition: all 0.1s ease-in-out;
61
+ transition: all 0.1s ease-in-out;
62
+ -webkit-border-radius: 30px;
63
+ -moz-border-radius: 30px;
64
+ border-radius: 30px;
65
+ margin-top: 15px;
66
+ width: 80%;
67
+ background: transparent;
68
+ color: #4caf50;
69
+ border-color: #4caf50;
70
+ outline: none;
71
+ }
72
+
73
+ .modalbox.success button:hover,
74
+ .modalbox.error button:hover,
75
+ .modalbox.success button:active:hover,
76
+ .modalbox.error button:active:hover,
77
+ .modalbox.success button:focus:hover,
78
+ .modalbox.error button:focus:hover {
79
+ color: #fff;
80
+ background: #4caf50;
81
+ border-color: transparent;
82
+ }
83
+
84
+ .modalbox.success .icon,
85
+ .modalbox.error .icon {
86
+ position: relative;
87
+ margin: 0 auto;
88
+ margin-top: -75px;
89
+ background: #4caf50;
90
+ height: 100px;
91
+ width: 100px;
92
+ border-radius: 50%;
93
+ }
94
+
95
+ .modalbox.success .icon span,
96
+ .modalbox.error .icon span {
97
+ font-size: 4em;
98
+ color: #fff;
99
+ text-align: center;
100
+ padding-top: 20px;
101
+ }
102
+
103
+ .modalbox.error button,
104
+ .modalbox.error button:active,
105
+ .modalbox.error button:focus {
106
+ color: #f44336;
107
+ border-color: #f44336;
108
+ }
109
+
110
+ .modalbox.error button:hover,
111
+ .modalbox.error button:active:hover,
112
+ .modalbox.error button:focus:hover {
113
+ color: #fff;
114
+ background: #f44336;
115
+ }
116
+
117
+ .modalbox.error .icon {
118
+ background: #f44336;
119
+ }
120
+
121
+ .modalbox.error .icon span {
122
+ padding-top: 25px;
123
+ }
124
+
125
+ .center {
126
+ float: none;
127
+ margin-left: auto;
128
+ margin-right: auto;
129
+ /* stupid browser compat. smh */
130
+ }
131
+
132
+ @-webkit-keyframes fall-in {
133
+ 0% {
134
+ -ms-transform: scale(3, 3);
135
+ -webkit-transform: scale(3, 3);
136
+ transform: scale(3, 3);
137
+ opacity: 0;
138
+ }
139
+ 50% {
140
+ -ms-transform: scale(1, 1);
141
+ -webkit-transform: scale(1, 1);
142
+ transform: scale(1, 1);
143
+ opacity: 1;
144
+ }
145
+ 60% {
146
+ -ms-transform: scale(1.1, 1.1);
147
+ -webkit-transform: scale(1.1, 1.1);
148
+ transform: scale(1.1, 1.1);
149
+ }
150
+ 100% {
151
+ -ms-transform: scale(1, 1);
152
+ -webkit-transform: scale(1, 1);
153
+ transform: scale(1, 1);
154
+ }
155
+ }
156
+
157
+ @-moz-keyframes fall-in {
158
+ 0% {
159
+ -ms-transform: scale(3, 3);
160
+ -webkit-transform: scale(3, 3);
161
+ transform: scale(3, 3);
162
+ opacity: 0;
163
+ }
164
+ 50% {
165
+ -ms-transform: scale(1, 1);
166
+ -webkit-transform: scale(1, 1);
167
+ transform: scale(1, 1);
168
+ opacity: 1;
169
+ }
170
+ 60% {
171
+ -ms-transform: scale(1.1, 1.1);
172
+ -webkit-transform: scale(1.1, 1.1);
173
+ transform: scale(1.1, 1.1);
174
+ }
175
+ 100% {
176
+ -ms-transform: scale(1, 1);
177
+ -webkit-transform: scale(1, 1);
178
+ transform: scale(1, 1);
179
+ }
180
+ }
181
+
182
+ @-o-keyframes fall-in {
183
+ 0% {
184
+ -ms-transform: scale(3, 3);
185
+ -webkit-transform: scale(3, 3);
186
+ transform: scale(3, 3);
187
+ opacity: 0;
188
+ }
189
+ 50% {
190
+ -ms-transform: scale(1, 1);
191
+ -webkit-transform: scale(1, 1);
192
+ transform: scale(1, 1);
193
+ opacity: 1;
194
+ }
195
+ 60% {
196
+ -ms-transform: scale(1.1, 1.1);
197
+ -webkit-transform: scale(1.1, 1.1);
198
+ transform: scale(1.1, 1.1);
199
+ }
200
+ 100% {
201
+ -ms-transform: scale(1, 1);
202
+ -webkit-transform: scale(1, 1);
203
+ transform: scale(1, 1);
204
+ }
205
+ }
206
+
207
+ @-webkit-keyframes plunge {
208
+ 0% {
209
+ margin-top: -100%;
210
+ }
211
+ 100% {
212
+ margin-top: 25%;
213
+ }
214
+ }
215
+
216
+ @-moz-keyframes plunge {
217
+ 0% {
218
+ margin-top: -100%;
219
+ }
220
+ 100% {
221
+ margin-top: 25%;
222
+ }
223
+ }
224
+
225
+ @-o-keyframes plunge {
226
+ 0% {
227
+ margin-top: -100%;
228
+ }
229
+ 100% {
230
+ margin-top: 25%;
231
+ }
232
+ }
233
+
234
+ @-moz-keyframes fall-in {
235
+ 0% {
236
+ -ms-transform: scale(3, 3);
237
+ -webkit-transform: scale(3, 3);
238
+ transform: scale(3, 3);
239
+ opacity: 0;
240
+ }
241
+ 50% {
242
+ -ms-transform: scale(1, 1);
243
+ -webkit-transform: scale(1, 1);
244
+ transform: scale(1, 1);
245
+ opacity: 1;
246
+ }
247
+ 60% {
248
+ -ms-transform: scale(1.1, 1.1);
249
+ -webkit-transform: scale(1.1, 1.1);
250
+ transform: scale(1.1, 1.1);
251
+ }
252
+ 100% {
253
+ -ms-transform: scale(1, 1);
254
+ -webkit-transform: scale(1, 1);
255
+ transform: scale(1, 1);
256
+ }
257
+ }
258
+
259
+ @-webkit-keyframes fall-in {
260
+ 0% {
261
+ -ms-transform: scale(3, 3);
262
+ -webkit-transform: scale(3, 3);
263
+ transform: scale(3, 3);
264
+ opacity: 0;
265
+ }
266
+ 50% {
267
+ -ms-transform: scale(1, 1);
268
+ -webkit-transform: scale(1, 1);
269
+ transform: scale(1, 1);
270
+ opacity: 1;
271
+ }
272
+ 60% {
273
+ -ms-transform: scale(1.1, 1.1);
274
+ -webkit-transform: scale(1.1, 1.1);
275
+ transform: scale(1.1, 1.1);
276
+ }
277
+ 100% {
278
+ -ms-transform: scale(1, 1);
279
+ -webkit-transform: scale(1, 1);
280
+ transform: scale(1, 1);
281
+ }
282
+ }
283
+
284
+ @-o-keyframes fall-in {
285
+ 0% {
286
+ -ms-transform: scale(3, 3);
287
+ -webkit-transform: scale(3, 3);
288
+ transform: scale(3, 3);
289
+ opacity: 0;
290
+ }
291
+ 50% {
292
+ -ms-transform: scale(1, 1);
293
+ -webkit-transform: scale(1, 1);
294
+ transform: scale(1, 1);
295
+ opacity: 1;
296
+ }
297
+ 60% {
298
+ -ms-transform: scale(1.1, 1.1);
299
+ -webkit-transform: scale(1.1, 1.1);
300
+ transform: scale(1.1, 1.1);
301
+ }
302
+ 100% {
303
+ -ms-transform: scale(1, 1);
304
+ -webkit-transform: scale(1, 1);
305
+ transform: scale(1, 1);
306
+ }
307
+ }
308
+
309
+ @keyframes fall-in {
310
+ 0% {
311
+ -ms-transform: scale(3, 3);
312
+ -webkit-transform: scale(3, 3);
313
+ transform: scale(3, 3);
314
+ opacity: 0;
315
+ }
316
+ 50% {
317
+ -ms-transform: scale(1, 1);
318
+ -webkit-transform: scale(1, 1);
319
+ transform: scale(1, 1);
320
+ opacity: 1;
321
+ }
322
+ 60% {
323
+ -ms-transform: scale(1.1, 1.1);
324
+ -webkit-transform: scale(1.1, 1.1);
325
+ transform: scale(1.1, 1.1);
326
+ }
327
+ 100% {
328
+ -ms-transform: scale(1, 1);
329
+ -webkit-transform: scale(1, 1);
330
+ transform: scale(1, 1);
331
+ }
332
+ }
333
+
334
+ @-moz-keyframes plunge {
335
+ 0% {
336
+ margin-top: -100%;
337
+ }
338
+ 100% {
339
+ margin-top: 15%;
340
+ }
341
+ }
342
+
343
+ @-webkit-keyframes plunge {
344
+ 0% {
345
+ margin-top: -100%;
346
+ }
347
+ 100% {
348
+ margin-top: 15%;
349
+ }
350
+ }
351
+
352
+ @-o-keyframes plunge {
353
+ 0% {
354
+ margin-top: -100%;
355
+ }
356
+ 100% {
357
+ margin-top: 15%;
358
+ }
359
+ }
360
+
361
+ @keyframes plunge {
362
+ 0% {
363
+ margin-top: -100%;
364
+ }
365
+ 100% {
366
+ margin-top: 15%;
367
+ }
368
+ }
369
+ </style>
370
+ </head>
371
+
372
+ <body>
373
+ <div class="container">
374
+ <div class="row">
375
+ <div class="modalbox success col-sm-8 col-md-6 col-lg-5 center animate">
376
+ <div class="icon">
377
+ <span class="glyphicon glyphicon-ok"></span>
378
+ </div>
379
+ <!--/.icon-->
380
+ <h1>Import Started!</h1>
381
+ <p>You can close this window and
382
+ <br>continue using the <b>CLI</b></p>
383
+ </div>
384
+ <!--/.success-->
385
+ </div>
386
+ <!--/.row-->
387
+ </div>
388
+ <!--/.container-->
389
+ </body>
390
+
391
+ </html>
Binary file
Binary file
File without changes