update clean scripts

This commit is contained in:
Marc Rousavy 2021-06-28 10:25:47 +02:00
parent e13bef7d17
commit 6470340351
4 changed files with 64 additions and 24 deletions

View File

@ -38,7 +38,9 @@
"check-ios": "scripts/swiftformat.sh && scripts/swiftlint.sh",
"check-cpp": "scripts/cpplint.sh",
"check-all": "scripts/check-all.sh",
"clean": "scripts/clean.sh",
"clean-ios": "scripts/clean-ios.sh",
"clean-android": "scripts/clean-android.sh",
"clean-js": "scripts/clean-js.sh",
"docs": "cd docs && yarn build",
"prepack": "rm -rf android-tmp && mv android android-tmp && mv android-npm android",
"postpack": "rm -rf android-npm && mv android android-npm && mv android-tmp android"

View File

@ -4,6 +4,10 @@ cd "$(dirname "$0")"
cd ..
echo "Running clean script in $PWD"
cd android
echo "./gradlew clean"
./gradlew clean
echo "rm -rf node_modules"
rm -rf node_modules
echo "rm -rf yarn.lock"
@ -19,14 +23,7 @@ echo "rm -rf yarn.lock"
rm -rf yarn.lock
rm -rf package-lock.json
echo "rm -rf ~/Library/Caches/CocoaPods"
rm -rf ~/Library/Caches/CocoaPods
echo "rm -rf ios/Pods"
rm -rf ios/Pods
echo "rm -rf ios/Podfile.lock"
rm -rf ios/Podfile.lock
echo "rm -rf ~/Library/Developer/Xcode/DerivedData/*"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
cd ..
echo "rm -rf android/.cxx"
rm -rf android/.cxx
@ -35,24 +32,9 @@ rm -rf android/.gradle
echo "rm -rf android/build"
rm -rf android/build
cd ios
echo "pod deintegrate"
pod deintegrate
echo "bundle clean"
bundle clean --force
cd ../..
echo "yarn in $PWD"
yarn
cd example
echo "yarn in $PWD"
yarn
cd ios
echo "bundle install"
bundle install
echo "pod setup"
bundle exec pod setup
echo "pod install"
bundle exec pod install

28
scripts/clean-ios.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
cd "$(dirname "$0")"
cd ..
echo "Running clean script in $PWD"
echo "rm -rf ~/Library/Caches/CocoaPods"
rm -rf ~/Library/Caches/CocoaPods
echo "rm -rf ~/Library/Developer/Xcode/DerivedData/*"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
echo "cd example/ios"
cd example/ios
echo "rm -rf ios/Pods"
rm -rf Pods
echo "rm -rf ios/Podfile.lock"
rm -rf Podfile.lock
echo "pod deintegrate"
pod deintegrate
echo "bundle clean"
bundle clean --force
echo "bundle install"
bundle install
echo "pod setup"
bundle exec pod setup
echo "pod install"
bundle exec pod install

28
scripts/clean-js.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
cd "$(dirname "$0")"
cd ..
echo "Running clean script in $PWD"
echo "rm -rf node_modules"
rm -rf node_modules
echo "rm -rf yarn.lock"
rm -rf yarn.lock
rm -rf package-lock.json
echo "cd example"
cd example
echo "rm -rf node_modules"
rm -rf node_modules
echo "rm -rf yarn.lock"
rm -rf yarn.lock
rm -rf package-lock.json
cd ..
echo "yarn in $PWD"
yarn
cd example
echo "yarn in $PWD"
yarn