Skip to content

Commit

Permalink
chore(react-18): upgrade rn and nextjs example apps
Browse files Browse the repository at this point in the history
  • Loading branch information
calebpollman committed Oct 21, 2023
1 parent c8684c1 commit 56c6fbb
Show file tree
Hide file tree
Showing 68 changed files with 1,379 additions and 7,311 deletions.
3 changes: 3 additions & 0 deletions examples/angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
1 change: 0 additions & 1 deletion examples/next/next-env.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions examples/next/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ module.exports = {
// allows importing of css files inside modules
patchWebpackConfig(config, options);

// resolve react and react-dom from project node_modules
config.resolve.alias = {
...config.resolve.alias,
react: path.resolve(__dirname, 'node_modules/react'),
'react-dom': path.resolve(__dirname, 'node_modules/react-dom'),
'react-map-gl': path.resolve(__dirname, 'node_modules/react-map-gl'),
};

return config;
},
};
10 changes: 5 additions & 5 deletions examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
"@aws-amplify/ui-react-geo": "^1.0.2",
"@aws-sdk/credential-providers": "^3.370.0",
"aws-amplify": "latest",
"next": "^11.1.3",
"next": "^13.5.5",
"next-global-css": "^1.1.1",
"react": "17",
"react": "18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "17",
"react-dom": "18.2.0",
"react-icons": "^4.4.0",
"react-map-gl": "7.0.23",
"swr": "^2.0.0"
},
"devDependencies": {
"@types/node": "^15.12.4",
"@types/react": "17.0.47",
"@types/react": "^18.2.22",
"eslint": "^8.44.0",
"eslint-config-next": "11.0.1",
"eslint-config-next": "^13.5.5",
"rimraf": "^3.0.2"
}
}
7 changes: 5 additions & 2 deletions examples/next/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
"jsx": "preserve",
"baseUrl": "./",
"paths": {
"@environments/*": ["../../environments/*"]
}
"@environments/*": [
"../../environments/*"
]
},
"incremental": true
},
"include": [
"next-env.d.ts",
Expand Down
6 changes: 0 additions & 6 deletions examples/react-native/.buckconfig

This file was deleted.

File renamed without changes.
20 changes: 11 additions & 9 deletions examples/react-native/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -29,33 +30,34 @@ build/
local.properties
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
4 changes: 2 additions & 2 deletions examples/react-native/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.4'
ruby '>= 2.6.10'

gem 'cocoapods', '~> 1.11', '>= 1.11.2'
gem 'cocoapods', '>= 1.11.3'
1 change: 0 additions & 1 deletion examples/react-native/_ruby-version

This file was deleted.

55 changes: 0 additions & 55 deletions examples/react-native/android/app/_BUCK

This file was deleted.

Loading

0 comments on commit 56c6fbb

Please sign in to comment.