UNPKG

@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.

29 lines 962 B
import fs from 'fs-extra'; export class FileProcessor { async readFile(filePath) { return fs.readFile(filePath, 'utf8'); } async writeFile(filePath, content) { await fs.writeFile(filePath, content, 'utf8'); } isTextFile(filePath) { const textExtensions = [ '.js', '.ts', '.jsx', '.tsx', '.json', '.xml', '.plist', '.kt', '.java', '.gradle', '.properties', '.md', '.txt', '.yml', '.yaml', '.sh', '.pbxproj', '.xcscheme', '.xcworkspacedata', '.storyboard', '.h' ]; return textExtensions.some(ext => filePath.endsWith(ext)); } shouldSkipFile(filePath) { const skipPatterns = [ 'node_modules/', '.git/', 'build/', 'dist/', '.DS_Store', 'Thumbs.db' ]; return skipPatterns.some(pattern => filePath.includes(pattern)); } } //# sourceMappingURL=base-processor.js.map