Overview:
The development monorepo houses the “React Native for Web” project and its related components. It contains directories such as “.github” for GitHub Actions workflows, “configs” for configuration files, and “packages” for individual packages managed within the monorepo. Various Node.js scripts located in the “scripts” directory enable developers to run tasks such as building, development, and testing for specific packages or the entire project.
Features:
- GitHub Workflows: Contains workflows used by GitHub Actions for automation.
- Configuration Files: Configuration files in the “configs” directory for monorepo tooling.
- Individual Packages: Each managed package is stored within the “packages” directory.
- Node.js Scripts: Scripts in the “scripts” directory for executing tasks like building, development, and testing.
Installation:
- Clone the monorepo locally:
git clone <repo-url>
- Navigate to the cloned directory:
cd <cloned-directory>
- Install dependencies using npm:
npm install
- Run build script for every package:
npm run build
- For a specific package, run:
npm run build -w <package-name>
- For a specific package, run:
- Run development script for every package:
npm run dev
- For a specific package, run:
npm run dev -w <package-name>
- For a specific package, run:
- Run tests for every package:
npm run test
Summary:
The development monorepo for “React Native for Web” provides a centralized location for managing related projects, individual packages, and various configuration files and scripts. Developers can easily contribute to the project by following the guidelines detailed in the contributing guide and adhering to the project’s code of conduct. The presence of GitHub workflows, configuration files, and Node.js scripts simplifies the development process for building, testing, and improving the project.