UNPKG

rn-logo-replacer

Version:

This is a project aiming at remplacing the logo of a react native app with a single npx command

26 lines (25 loc) 1.22 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileOperation = void 0; class FileOperation { constructor(source, destination) { this.source = source; this.destination = destination; } // Common method that could be overridden execute() { return __awaiter(this, void 0, void 0, function* () { console.log(`🏃 Executing ${this.constructor.name} from ${this.source} to ${this.destination}`); }); } } exports.FileOperation = FileOperation;