rn-logo-replacer
Version:
This is a project aiming at remplacing the logo of a react native app with a single npx command
20 lines (19 loc) • 821 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeMove = executeMove;
const path_1 = __importDefault(require("path"));
const basic_1 = require("./basic");
const move_1 = require("../../../file_actions_obj/move");
function executeMove(source, destination, platform) {
let paths = (0, basic_1.formAllPaths)(platform);
let action;
paths.forEach(subFolder => {
const fullSourceSubPath = path_1.default.join(source, subFolder);
const fullDestinationSubPath = path_1.default.join(destination, subFolder);
action = new move_1.Move(fullSourceSubPath, fullDestinationSubPath);
action.execute();
});
}