index.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. "use strict";
  2. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3. if (k2 === undefined) k2 = k;
  4. var desc = Object.getOwnPropertyDescriptor(m, k);
  5. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  6. desc = { enumerable: true, get: function() { return m[k]; } };
  7. }
  8. Object.defineProperty(o, k2, desc);
  9. }) : (function(o, m, k, k2) {
  10. if (k2 === undefined) k2 = k;
  11. o[k2] = m[k];
  12. }));
  13. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  14. Object.defineProperty(o, "default", { enumerable: true, value: v });
  15. }) : function(o, v) {
  16. o["default"] = v;
  17. });
  18. var __importStar = (this && this.__importStar) || function (mod) {
  19. if (mod && mod.__esModule) return mod;
  20. var result = {};
  21. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  22. __setModuleDefault(result, mod);
  23. return result;
  24. };
  25. Object.defineProperty(exports, "__esModule", { value: true });
  26. exports.LiveUpdatesNamespace = void 0;
  27. const color_1 = require("../../lib/color");
  28. const namespace_1 = require("../../lib/namespace");
  29. class LiveUpdatesNamespace extends namespace_1.Namespace {
  30. async getMetadata() {
  31. return {
  32. name: 'live-update',
  33. summary: 'Ionic Live Updates functionality',
  34. description: `
  35. These commands integrate with Ionic Cloud to configure the Live Updates plugin in your project and run remote builds.
  36. Ionic Live Updates documentation:
  37. - Overview: ${(0, color_1.strong)('https://ion.link/appflow-deploy-docs')}
  38. `,
  39. groups: ["paid" /* MetadataGroup.PAID */],
  40. };
  41. }
  42. async getCommands() {
  43. return new namespace_1.CommandMap([
  44. ['add', async () => { const { AddCommand } = await Promise.resolve().then(() => __importStar(require('./add'))); return new AddCommand(this); }],
  45. ['configure', async () => { const { ConfigureCommand } = await Promise.resolve().then(() => __importStar(require('./configure'))); return new ConfigureCommand(this); }],
  46. ['manifest', async () => { const { LiveUpdatesManifestCommand } = await Promise.resolve().then(() => __importStar(require('./manifest'))); return new LiveUpdatesManifestCommand(this); }],
  47. ]);
  48. }
  49. }
  50. exports.LiveUpdatesNamespace = LiveUpdatesNamespace;