UNPKG

inversitron

Version:
28 lines (27 loc) 1.17 kB
#!/usr/bin/env node "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var commander_1 = require("commander"); var build_1 = __importDefault(require("./commands/build/build")); var dev_1 = __importDefault(require("./commands/dev/dev")); var init_1 = __importDefault(require("./commands/init/init")); commander_1.program .name('tron') .version('0.3.5', '-v, --version', 'output the current version of Tron CLI'); commander_1.program .command('init <name>') .description('create the tron configuration json file used by Tron and Inversitron') .action(init_1.default); commander_1.program .command('dev') .description('run the Inversitron app in development mode') .option('-c, --config <file>', 'Specify an alternative path to the tronconfig.json file') .action(dev_1.default); commander_1.program .command('build') .description('build the Inversitron app to be used in production environment') .action(build_1.default); commander_1.program.parse(process.argv);