-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: run expo upgrade on all projects * update with-yarn-workspaces to use latest monorepo doc * update with-gatsby dependencies to fix errors * fix 'require not defined' error on with-electron * with-three updated, now working * with-react-three-fiber other deps updated, working * update with-splash-screen for clarity * upgrade all examples to react-native 0.69.4 * clean up with-moti * cleaned up react-navigation examples * cleaned up refs to potentially missing NPM scripts * renamed upgrade script for clarity * fix missed update to react-native 0.69.4 * Fix inaccurate script output * remove inaccurate warning * remove refs to global CLI/ ejecting * Update blank/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * Update blank/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * Update with-maps/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * Update with-maps/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * Update with-moti/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * Update with-yarn-workspaces/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * Update with-electron/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * Update with-moti/README.md Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com> * consistent directions for starting projects, rm cli refs Co-authored-by: Kim Brandwijk <kim.brandwijk@gmail.com>
- Loading branch information
1 parent
fca8ce1
commit 24e3f53
Showing
106 changed files
with
650 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,7 @@ with-nextjs/out | |
*/backend/.env | ||
|
||
.DS_Store | ||
report.html | ||
report.html | ||
|
||
# Maintenance logs | ||
.sdk-upgrade-logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"expo": { | ||
"name": "blank", | ||
"slug": "blank", | ||
"version": "1.0.0", | ||
"platforms": [ | ||
"ios", | ||
"android", | ||
"web" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"dependencies": { | ||
"expo": "^45.0.0", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-native": "0.68.2", | ||
"react-native-web": "0.17.7" | ||
"expo": "^46.0.0", | ||
"react": "18.0.0", | ||
"react-dom": "18.0.0", | ||
"react-native": "0.69.4", | ||
"react-native-web": "~0.18.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.9" | ||
"@babel/core": "^7.18.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$1" == "" ] || [ "$1" == "--help" ]; then | ||
echo "Available flags:" | ||
echo "--help" | ||
echo "--run-expo-upgrade - run yarn and expo-cli upgrade to update to latest SDK on all examples" | ||
echo "--run-fix-dependencies - run npx expo install --fix on all repos" | ||
exit 0 | ||
fi | ||
|
||
if [ "$1" == "--run-expo-upgrade" ]; then | ||
echo "Upgrading all projects to the latest SDK..." | ||
echo "For each example, this will run `yarn` and then run `expo-cli upgrade`, accepting all defaults." | ||
echo "Upgrade logs will be written to .sdk-upgrade-logs." | ||
|
||
mkdir ./.sdk-upgrade-logs | ||
for d in */ ; do | ||
DIRNAME=${d%/} | ||
echo "Upgrading $DIRNAME..." | ||
echo "• Run yarn" | ||
(cd $DIRNAME && yarn --silent) # If yarn fails spectacularly, we'll see evidence in the logs for expo upgrade | ||
echo "• Run expo upgrade" | ||
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt) | ||
done | ||
|
||
# yarn workspaces has example(s) inside of app folder | ||
echo "• Run expo upgrade on apps inside with-yarn-workspaces" | ||
mkdir ./.sdk-upgrade-logs/with-yarn-workspaces | ||
for d in with-yarn-workspaces/apps/*/ ; do | ||
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt) | ||
done | ||
|
||
echo "Upgrades complete! Check .sdk-upgrade-logs for results. Be sure to correct any errors or warnings." | ||
exit 0 | ||
fi | ||
|
||
if [ "$1" == "--run-fix-dependencies" ]; then | ||
echo "Fixing dependencies on all examples..." | ||
|
||
mkdir ./.sdk-upgrade-logs | ||
for d in */ ; do | ||
DIRNAME=${d%/} | ||
echo "Fixing dependencies on $DIRNAME..." | ||
(cd $DIRNAME && npx expo install --fix) | ||
done | ||
|
||
echo "Fixing dependencies on apps inside with-yarn-workspaces..." | ||
mkdir ./.sdk-upgrade-logs/with-yarn-workspaces | ||
for d in with-yarn-workspaces/apps/*/ ; do | ||
(cd $DIRNAME && npx expo install --fix) | ||
done | ||
|
||
echo "Dependency fixes complete!" | ||
exit 0 | ||
fi | ||
|
||
echo "Error: flag not recognized" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"dependencies": { | ||
"expo": "^45.0.0", | ||
"expo-auth-session": "~3.6.0", | ||
"expo-random": "~12.2.0", | ||
"expo": "^46.0.0", | ||
"expo-auth-session": "~3.7.1", | ||
"expo-random": "~12.3.0", | ||
"jwt-decode": "2.2.0", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-native": "0.68.2", | ||
"react-native-web": "0.17.7" | ||
"react": "18.0.0", | ||
"react-dom": "18.0.0", | ||
"react-native": "0.69.4", | ||
"react-native-web": "~0.18.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.9" | ||
"@babel/core": "^7.18.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"dependencies": { | ||
"expo": "^45.0.0", | ||
"expo-camera": "~12.2.0", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-native": "0.68.2", | ||
"react-native-web": "0.17.7" | ||
"expo": "^46.0.0", | ||
"expo-camera": "~12.3.0", | ||
"react": "18.0.0", | ||
"react-dom": "18.0.0", | ||
"react-native": "0.69.4", | ||
"react-native-web": "~0.18.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.9" | ||
"@babel/core": "^7.18.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"dependencies": { | ||
"expo": "^45.0.0", | ||
"expo-font": "~10.1.0", | ||
"expo-splash-screen": "~0.15.1", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-native": "0.68.2", | ||
"react-native-web": "0.17.7" | ||
"expo": "^46.0.0", | ||
"expo-font": "~10.2.0", | ||
"expo-splash-screen": "~0.16.1", | ||
"react": "18.0.0", | ||
"react-dom": "18.0.0", | ||
"react-native": "0.69.4", | ||
"react-native-web": "~0.18.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.9" | ||
"@babel/core": "^7.18.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.