UNPKG

@ivoryio/ivory-cli

Version:
16 lines (15 loc) 683 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createReactApp = void 0; var shelljs_1 = __importDefault(require("shelljs")); exports.createReactApp = function (appName) { var result = shelljs_1.default.exec("yarn create react-app --color always --template @ivoryio " + appName); if (result.code !== 0) { shelljs_1.default.echo('Error: create react-app failed with ivory template failed'); shelljs_1.default.echo(result.stderr); shelljs_1.default.exit(result.code); } };