ueno-cli
Version:
Ueno Command-Line Utility
25 lines • 928 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const ink_1 = require("ink");
const ReactNativeInit_1 = require("../../components/ReactNativeInit");
exports.command = 'init [AppName]';
exports.desc = 'initialize react native project';
exports.builder = (yargs) => yargs
.option('bundleId', {
describe: 'bundle identifier',
default: 'com.ueno.reactnativestarter',
})
.option('next', {
type: 'boolean',
describe: 'use latest development version',
default: false,
});
exports.handler = (args) => tslib_1.__awaiter(this, void 0, void 0, function* () {
const { AppName, bundleId, next } = args;
const unmount = ink_1.render(ink_1.h(ReactNativeInit_1.ReactNativeInit, { appName: AppName, bundleId: bundleId, next: next, onComplete: doUnmount }));
function doUnmount() {
unmount();
}
});
//# sourceMappingURL=init.js.map