./create-react-native-app.sh
Creates a new React Native project with:
- Enterprise-grade configuration
- Enhanced safety scripts
- Complete ReactNativeTest documentation
- Critical GitHub Copilot instructions - Enhanced
Zero-dependency React Native project creator with comprehensive ReactNativeTest documentation and path-aware scripts
The enhanced version addresses critical path resolution issues identified in the TestAppN development process:
- Metro Startup: Auto-detects project directory using
$(dirname "${BASH_SOURCE[0]}")
- iOS Launch: Validates and sets working directory before building
- Configuration Scripts: Use absolute paths to prevent directory navigation errors
- Bundle ID/Team ID Setup: Automatic project detection and path validation
configure-ios.sh
- Interactive Bundle ID and Team ID setup with path validationtest-ios-build.sh
- Comprehensive build readiness testing with auto-detection- Smart Launch Protocol - Eliminates "Unable to boot device" and path-related errors
Script | Purpose | Key Enhancement |
---|---|---|
enhanced-start-metro.sh |
Metro startup | Auto-detects project directory, handles port conflicts |
smart-ios-launch.sh |
iOS simulator launch | Path validation, configuration display, error handling |
configure-ios.sh |
iOS Bundle ID/Team ID setup | Interactive configuration with validation |
test-ios-build.sh |
Build readiness verification | Comprehensive project validation |
./create-react-native-app.sh
Creates a new React Native project with:
- Enterprise-grade configuration
- Enhanced safety scripts
- Complete ReactNativeTest documentation
- Critical GitHub Copilot instructions
./export-reusable-docs.sh [project-directory]
Exports comprehensive documentation to any existing React Native project.
- 1,934 lines of enterprise-grade coding standards
- Zero-warning development protocols
- Comprehensive testing requirements
- Must be committed immediately for code quality
- Development Patterns - Proven ReactNativeTest approaches
- Troubleshooting Guides - Issue resolution and emergency fixes
- Setup Guides - Configuration and environment setup
- Templates - Ready-to-copy code templates
- Reference Documentation - Technical specifications
- Metro Safety Protocol - Conflict detection and resolution
- Smart iOS Launch - Warning-free simulator startup
- Project Validation - Built-in integrity checks
- Quality Gates - TypeScript, ESLint, and testing enforcement
- iOS Configuration Automation - Interactive Bundle ID and Team ID setup
- Build Readiness Testing - Comprehensive validation before builds
Projects created with the enhanced script include these additional npm scripts:
{
"scripts": {
"start-safe": "./start-metro.sh",
"ios-simulator": "./ios-smart-launch.sh",
"configure-ios": "./configure-ios.sh",
"test-ios-build": "./test-ios-build.sh",
"verify-project": "echo \"β
Project: $(pwd)\" && ls -la index.js package.json ios/"
}
}
create-react-native-app.sh
- Creates complete projects
export-reusable-docs.sh
- Adds documentation to any project
Benefits:
- β Modular Design - Use scripts independently
- β Maintainable - Easy to update documentation
- β Flexible - Add docs to any React Native project
- β Clean - No embedded content in main script
cd react-native-app-creator
./create-react-native-app.sh
# Follow prompts for project name, architecture, documentation
cd your-existing-react-native-project
/path/to/react-native-app-creator/export-reusable-docs.sh
# From the portable directory
./export-reusable-docs.sh /path/to/any/react-native-project
After creating any project, immediately commit the Copilot instructions:
cd your-new-project
git add .github/copilot-instructions.md
git commit -m "Add critical Copilot instructions for code quality"
git push
This ensures enterprise-grade code quality from day one.
- Zero External Dependencies - Works on any machine
- Complete ReactNativeTest Patterns - All proven approaches included
- Enterprise-Grade Quality - Production-ready from creation
- Modular Architecture - Use components independently
- Comprehensive Documentation - Everything needed for success
react-native-app-creator/
βββ create-react-native-app.sh # Main creator
βββ export-reusable-docs.sh # Documentation exporter
βββ reusable-docs/ # Source documentation
β βββ .github/copilot-instructions.md # Critical standards
β βββ docs/ # Complete patterns
βββ README.md # This guide
βββ simple-starter-script-guide.md # Detailed instructions
- New React Native Projects - Complete setup with all patterns
- Existing Projects - Add enterprise-grade documentation
- Team Distribution - Consistent quality across all projects
- Enterprise Development - Production-ready standards
Ready to create enterprise-grade React Native projects! π
- Jest configuration with React Native presets
- Mock setups for common modules
- Coverage and watch modes
- TypeScript validation
- ESLint integration
- Enhanced npm scripts
- Project verification commands
# Copy to any machine
scp -r react-native-app-creator/ user@machine:/path/to/projects/
# On the target machine
cd /path/to/projects/react-native-app-creator
./create-react-native-app.sh
# Follow the interactive prompts:
# π·οΈ Project Name: MyAwesomeApp
# π Description: My new React Native app
# π± Architecture: 1 (Simple) or 2 (Multi-feature)
# π Documentation: y/n
# Result: Complete MyAwesomeApp/ ready for development!
Feature | Standalone Edition | ReactNativeTest Dependent |
---|---|---|
Dependencies | β Zero | β Requires ReactNativeTest project |
Portability | β Works anywhere | β Tied to specific directory |
File Size | β Single script | β Entire ReactNativeTest project |
Features | β All essential features embedded | β Full feature set with docs |
Maintenance | β Self-contained | β Must sync with ReactNativeTest |
- β New machines without ReactNativeTest
- β Team distribution - share with colleagues
- β CI/CD environments - consistent project creation
- β Backup solution - always works independently
- β Client machines - create projects anywhere
This portable solution gives you:
- β 100% working React Native projects
- β All safety and quality improvements
- β Professional development workflow
- β Zero setup time on new machines
- β No external dependencies ever
Truly portable React Native project creation! π