A simple tool to clean up your React Native project by removing unnecessary folders and files, reducing the size of the project before sharing.
To use react-native-clean
, you don't need to install it globally. You can run it directly using npx
.
npx react-native-clean
Navigate to the root directory of your React Native project:
cd path/to/your/react-native-project
Run the clean command:
npx react-native-clean
This will remove the specified folders and files from your project
The script will delete the following folders and files from your React Native project:
node_modules
ios/build
ios/Pods
*.xcworkspace
android/build
android/app/build
android/.gradle
android/.idea
.git
.buildkite
.vscode
.yarn/cache
yarn.lock
package.lock
ios/Podfile.lock
After running npx react-native-clean
, your project structure will be cleaned by removing the specified folders and files, which helps in reducing the project size for sharing or archiving purposes.
You can find the source code and report any issues on the GitHub repository
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the ISC License - see the LICENSE file for details.
Nikhil Sharma
If you encounter any bugs or issues, please report them at GitHub repository Issues
- react-native-clean
- react-native-folder-clean
- react-native-project-resize