update clean scripts
This commit is contained in:
parent
e13bef7d17
commit
6470340351
@ -38,7 +38,9 @@
|
|||||||
"check-ios": "scripts/swiftformat.sh && scripts/swiftlint.sh",
|
"check-ios": "scripts/swiftformat.sh && scripts/swiftlint.sh",
|
||||||
"check-cpp": "scripts/cpplint.sh",
|
"check-cpp": "scripts/cpplint.sh",
|
||||||
"check-all": "scripts/check-all.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",
|
"docs": "cd docs && yarn build",
|
||||||
"prepack": "rm -rf android-tmp && mv android android-tmp && mv android-npm android",
|
"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"
|
"postpack": "rm -rf android-npm && mv android android-npm && mv android-tmp android"
|
||||||
|
@ -4,6 +4,10 @@ cd "$(dirname "$0")"
|
|||||||
cd ..
|
cd ..
|
||||||
echo "Running clean script in $PWD"
|
echo "Running clean script in $PWD"
|
||||||
|
|
||||||
|
cd android
|
||||||
|
echo "./gradlew clean"
|
||||||
|
./gradlew clean
|
||||||
|
|
||||||
echo "rm -rf node_modules"
|
echo "rm -rf node_modules"
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
echo "rm -rf yarn.lock"
|
echo "rm -rf yarn.lock"
|
||||||
@ -19,14 +23,7 @@ echo "rm -rf yarn.lock"
|
|||||||
rm -rf yarn.lock
|
rm -rf yarn.lock
|
||||||
rm -rf package-lock.json
|
rm -rf package-lock.json
|
||||||
|
|
||||||
echo "rm -rf ~/Library/Caches/CocoaPods"
|
cd ..
|
||||||
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/*
|
|
||||||
|
|
||||||
echo "rm -rf android/.cxx"
|
echo "rm -rf android/.cxx"
|
||||||
rm -rf android/.cxx
|
rm -rf android/.cxx
|
||||||
@ -35,24 +32,9 @@ rm -rf android/.gradle
|
|||||||
echo "rm -rf android/build"
|
echo "rm -rf android/build"
|
||||||
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"
|
echo "yarn in $PWD"
|
||||||
yarn
|
yarn
|
||||||
|
|
||||||
cd example
|
cd example
|
||||||
echo "yarn in $PWD"
|
echo "yarn in $PWD"
|
||||||
yarn
|
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
28
scripts/clean-ios.sh
Executable 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
28
scripts/clean-js.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user