UNPKG

@platform/cell.tmpl

Version:

Template generator for the system

25 lines (24 loc) 792 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var common_1 = require("./common"); var tmpl_1 = require("./tmpl"); process.on('unhandledRejection', function (err) { throw err; }); var argv = (0, common_1.minimist)(process.argv.slice(2)); (function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () { var install, dir; return tslib_1.__generator(this, function (_a) { switch (_a.label) { case 0: install = Boolean(argv.install); dir = process.cwd(); return [4, (0, tmpl_1.tmpl)({ dir: dir, install: install })]; case 1: _a.sent(); return [2]; } }); }); })();