UNPKG

@interopio/desktop-cli

Version:

CLI tool for setting up, building and packaging io.Connect Desktop projects

40 lines 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setupCommand = exports.bootstrapCommand = exports.initCommand = void 0; const commander_1 = require("commander"); const logger_1 = require("../utils/logger"); const error_handler_1 = require("../utils/error.handler"); const components_service_1 = require("../services/components/components.service"); const app_service_1 = require("../services/app.service"); const nextSteps_1 = require("../utils/nextSteps"); const logger = logger_1.Logger.getInstance(); exports.initCommand = new commander_1.Command('init') .description('Initialize a new io.cd project in the current directory') .action(() => { logger.info('Init command called'); console.log('Initializing project - Phase 3 implementation required'); }); exports.bootstrapCommand = new commander_1.Command('bootstrap') .description('Bootstrap the development environment') .action(() => { logger.info('Bootstrap command called'); console.log('Bootstrapping environment - Phase 4 implementation required'); }); exports.setupCommand = new commander_1.Command('setup') .description('Prepares the seed for first usage. This will install components, and install packages for all apps') .action(async () => { try { logger.info('Preparing the seed for first usage...'); await new components_service_1.ComponentsService().installComponents(); await new app_service_1.AppService().installAllApps(); logger.info('Seed prepared successfully!'); (0, nextSteps_1.printNextSteps)([ 'Run "npm run start" to start the development environment', 'Run "npm run make-installer" to create distributable packages' ]); } catch (error) { error_handler_1.ErrorHandler.handle(error); } }); //# sourceMappingURL=setup.command.js.map