@reuvenorg/react-native-boilerplate-ultimate
Version:
A powerful CLI tool for creating React Native projects with modular architecture. Generate, manage, and scaffold React Native applications with pre-built modules and best practices.
16 lines • 674 B
JavaScript
import { FileProcessor } from './base-processor.js';
export class GenericProcessor extends FileProcessor {
canProcess(filePath) {
// Process any text file that wasn't handled by specialized processors
return this.isTextFile(filePath) && !this.shouldSkipFile(filePath);
}
async process(filePath, context) {
let content = await this.readFile(filePath);
// Apply basic text replacements
content = content
.replace(/ExApp/g, context.projectName)
.replace(/com\.anonymous\.exapp/g, context.bundleId);
await this.writeFile(filePath, content);
}
}
//# sourceMappingURL=generic-processor.js.map