UNPKG

rn-ml

Version:

React Native cli tools

22 lines (21 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.appIconSetup = void 0; const commander_1 = require("commander"); const appicon_1 = require("../appicon"); const constants_1 = require("../appicon/constants"); const appIconSetup = (program) => { program .command("appicon") .description("Gen app icon for android/ios") .addOption(new commander_1.Option("-p, --platform [platform...]", "Default: all.") .choices(constants_1.LIST_PLATFORM) .default(constants_1.DEFAULT_PLATFORM)) .addOption(new commander_1.Option("-s, --source <string>", "Source image for icon (1024x1024)")) .addOption(new commander_1.Option("-f, --flavor <string>", "[Android only] Select flavor android").default(constants_1.DEFAULT_ANDROID_FLAVOR)) .addOption(new commander_1.Option("-icn, --ios-icon-name <string>", "[IOS only] Custom AppIcon Image name").default(constants_1.DEFAULT_ICON_IOS)) .addOption(new commander_1.Option("-ar, --android-source <string>", "Path to android source").default(constants_1.DEFAULT_ANDROID_SOURCE)) .addOption(new commander_1.Option("-is, --ios-source <string>", "Path to ios source").default(constants_1.DEFAULT_IOS_SOURCE)) .action(appicon_1.run); }; exports.appIconSetup = appIconSetup;