-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new structure #2622
new structure #2622
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe pull request involves removing a Git submodule and a tool versions configuration file, and introducing a new Changes
Sequence Diagramgraph TD
A[Developer] -->|New Project Setup| B[package.json]
B -->|Defines| C[Project Metadata]
B -->|Configures| D[Development Scripts]
B -->|Specifies| E[Dependencies]
B -->|Includes| F[Dev Dependencies]
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (3)
client/apps/game/package.json (3)
2-4
: Consider updating the version number.The version is set to "0.0.0" which typically indicates an initial setup. Consider setting an appropriate version number that reflects the project's maturity and follows semantic versioning principles.
5-14
: Add lint scripts to package.json.ESLint dependencies are present but there are no lint scripts defined. Consider adding the following scripts:
"scripts": { "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", "test": "vitest run", "test:watch": "vitest", "test:ui": "vitest --ui", "coverage": "vitest run --coverage", - "generate-pwa-assets": "pwa-assets-generator" + "generate-pwa-assets": "pwa-assets-generator", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "lint:fix": "eslint . --ext ts,tsx --fix" },
76-76
: Consolidate SVG plugins.Two SVG-related Vite plugins are included:
- @svgr/rollup
- vite-plugin-svgr
Consider using only vite-plugin-svgr as it's specifically designed for Vite.
"devDependencies": { - "@svgr/rollup": "^8.1.0", // ... other dependencies ...
Also applies to: 103-103
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (200)
client/apps/docs/public/03.png
is excluded by!**/*.png
client/apps/docs/public/bridge.png
is excluded by!**/*.png
client/apps/docs/public/buildings/archery.png
is excluded by!**/*.png
client/apps/docs/public/buildings/bank.png
is excluded by!**/*.png
client/apps/docs/public/buildings/barracks.png
is excluded by!**/*.png
client/apps/docs/public/buildings/farm.png
is excluded by!**/*.png
client/apps/docs/public/buildings/fishing_village.png
is excluded by!**/*.png
client/apps/docs/public/buildings/forge.png
is excluded by!**/*.png
client/apps/docs/public/buildings/fragment_mine.png
is excluded by!**/*.png
client/apps/docs/public/buildings/hyperstructure.png
is excluded by!**/*.png
client/apps/docs/public/buildings/lumber_mill.png
is excluded by!**/*.png
client/apps/docs/public/buildings/market.png
is excluded by!**/*.png
client/apps/docs/public/buildings/mine.png
is excluded by!**/*.png
client/apps/docs/public/buildings/stable.png
is excluded by!**/*.png
client/apps/docs/public/buildings/storehouse.png
is excluded by!**/*.png
client/apps/docs/public/buildings/wonder.png
is excluded by!**/*.png
client/apps/docs/public/buildings/workers_hut.png
is excluded by!**/*.png
client/apps/docs/public/controller.png
is excluded by!**/*.png
client/apps/docs/public/eternum_documentation.png
is excluded by!**/*.png
client/apps/docs/public/eternum_new_logo.svg
is excluded by!**/*.svg
client/apps/docs/public/eternum_words_logo.svg
is excluded by!**/*.svg
client/apps/docs/public/gifs/bridge-in.gif
is excluded by!**/*.gif
client/apps/docs/public/gifs/bridge-out-final.gif
is excluded by!**/*.gif
client/apps/docs/public/gifs/bridge-out-start.gif
is excluded by!**/*.gif
client/apps/docs/public/gifs/final-bridge-in.gif
is excluded by!**/*.gif
client/apps/docs/public/logos/BuiltDojo.svg
is excluded by!**/*.svg
client/apps/docs/public/logos/Cartridge.png
is excluded by!**/*.png
client/apps/docs/public/logos/Dojo.svg
is excluded by!**/*.svg
client/apps/docs/public/logos/RealmsWorld.png
is excluded by!**/*.png
client/apps/docs/public/logos/Starknet.png
is excluded by!**/*.png
client/apps/docs/public/map.png
is excluded by!**/*.png
client/apps/docs/public/og-image.png
is excluded by!**/*.png
client/apps/docs/public/resources/1.png
is excluded by!**/*.png
client/apps/docs/public/resources/10.png
is excluded by!**/*.png
client/apps/docs/public/resources/11.png
is excluded by!**/*.png
client/apps/docs/public/resources/12.png
is excluded by!**/*.png
client/apps/docs/public/resources/13.png
is excluded by!**/*.png
client/apps/docs/public/resources/14.png
is excluded by!**/*.png
client/apps/docs/public/resources/15.png
is excluded by!**/*.png
client/apps/docs/public/resources/16.png
is excluded by!**/*.png
client/apps/docs/public/resources/17.png
is excluded by!**/*.png
client/apps/docs/public/resources/18.png
is excluded by!**/*.png
client/apps/docs/public/resources/19.png
is excluded by!**/*.png
client/apps/docs/public/resources/2.png
is excluded by!**/*.png
client/apps/docs/public/resources/20.png
is excluded by!**/*.png
client/apps/docs/public/resources/21.png
is excluded by!**/*.png
client/apps/docs/public/resources/22.png
is excluded by!**/*.png
client/apps/docs/public/resources/249.png
is excluded by!**/*.png
client/apps/docs/public/resources/250.png
is excluded by!**/*.png
client/apps/docs/public/resources/251.png
is excluded by!**/*.png
client/apps/docs/public/resources/252.png
is excluded by!**/*.png
client/apps/docs/public/resources/253.png
is excluded by!**/*.png
client/apps/docs/public/resources/254.png
is excluded by!**/*.png
client/apps/docs/public/resources/255.png
is excluded by!**/*.png
client/apps/docs/public/resources/29.png
is excluded by!**/*.png
client/apps/docs/public/resources/3.png
is excluded by!**/*.png
client/apps/docs/public/resources/4.png
is excluded by!**/*.png
client/apps/docs/public/resources/5.png
is excluded by!**/*.png
client/apps/docs/public/resources/6.png
is excluded by!**/*.png
client/apps/docs/public/resources/7.png
is excluded by!**/*.png
client/apps/docs/public/resources/8.png
is excluded by!**/*.png
client/apps/docs/public/resources/9.png
is excluded by!**/*.png
client/apps/docs/public/ring_pass.png
is excluded by!**/*.png
client/apps/game/public/cursor-cross.png
is excluded by!**/*.png
client/apps/game/public/cursor.png
is excluded by!**/*.png
client/apps/game/public/draco/draco_decoder.wasm
is excluded by!**/*.wasm
client/apps/game/public/draco/gltf/draco_decoder.wasm
is excluded by!**/*.wasm
client/apps/game/public/grab.png
is excluded by!**/*.png
client/apps/game/public/hex-bg.png
is excluded by!**/*.png
client/apps/game/public/images/Eternum-Mark-Black.png
is excluded by!**/*.png
client/apps/game/public/images/apple-touch-icon-180x180.png
is excluded by!**/*.png
client/apps/game/public/images/argent-x.svg
is excluded by!**/*.svg
client/apps/game/public/images/avatars/01.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/02.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/03.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/04.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/05.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/06.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/07.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/08.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/09.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/10.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/11.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/12.png
is excluded by!**/*.png
client/apps/game/public/images/avatars/mercenary.png
is excluded by!**/*.png
client/apps/game/public/images/braavos.svg
is excluded by!**/*.svg
client/apps/game/public/images/buildings/construction/archery.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/barracks.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/dragonhide.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/farm.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/fishing_village.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/forge.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/lumber_mill.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/market.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/mine.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/stable.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/storehouse.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/construction/workers_hut.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/archer-tower.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/army.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/banks.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/castle.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/castleOne.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/castleThree.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/castleTwo.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/castleZero.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/crane.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/discord.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/fragment-mine.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/guilds.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/house.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/hyperstructure.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/leaderboard.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/military.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/question-wood.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/question.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/realm.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/resources.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/rewards.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/scale.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/settings.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/silo.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/squire.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/sword.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/timeglass.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/trade.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/trophy.png
is excluded by!**/*.png
client/apps/game/public/images/buildings/thumb/world-map.png
is excluded by!**/*.png
client/apps/game/public/images/cover.png
is excluded by!**/*.png
client/apps/game/public/images/covers/01.png
is excluded by!**/*.png
client/apps/game/public/images/covers/02.png
is excluded by!**/*.png
client/apps/game/public/images/covers/03.png
is excluded by!**/*.png
client/apps/game/public/images/covers/04.png
is excluded by!**/*.png
client/apps/game/public/images/covers/05.png
is excluded by!**/*.png
client/apps/game/public/images/covers/06.png
is excluded by!**/*.png
client/apps/game/public/images/covers/07.png
is excluded by!**/*.png
client/apps/game/public/images/eternum-logo.svg
is excluded by!**/*.svg
client/apps/game/public/images/eternum-logo_animated.png
is excluded by!**/*.png
client/apps/game/public/images/eternum_logo.png
is excluded by!**/*.png
client/apps/game/public/images/eternum_with_snake.png
is excluded by!**/*.png
client/apps/game/public/images/eternumloader.png
is excluded by!**/*.png
client/apps/game/public/images/favicon.ico
is excluded by!**/*.ico
client/apps/game/public/images/icons/250.png
is excluded by!**/*.png
client/apps/game/public/images/icons/251.png
is excluded by!**/*.png
client/apps/game/public/images/icons/252.png
is excluded by!**/*.png
client/apps/game/public/images/icons/attack.png
is excluded by!**/*.png
client/apps/game/public/images/icons/claim.png
is excluded by!**/*.png
client/apps/game/public/images/icons/leave-battle.png
is excluded by!**/*.png
client/apps/game/public/images/icons/raid.png
is excluded by!**/*.png
client/apps/game/public/images/icons/troop.png
is excluded by!**/*.png
client/apps/game/public/images/maskable-icon-512x512.png
is excluded by!**/*.png
client/apps/game/public/images/og-image.png
is excluded by!**/*.png
client/apps/game/public/images/orders/anger.png
is excluded by!**/*.png
client/apps/game/public/images/orders/brilliance.png
is excluded by!**/*.png
client/apps/game/public/images/orders/detection.png
is excluded by!**/*.png
client/apps/game/public/images/orders/enlightenment.png
is excluded by!**/*.png
client/apps/game/public/images/orders/fox.png
is excluded by!**/*.png
client/apps/game/public/images/orders/fury.png
is excluded by!**/*.png
client/apps/game/public/images/orders/giants.png
is excluded by!**/*.png
client/apps/game/public/images/orders/perfection.png
is excluded by!**/*.png
client/apps/game/public/images/orders/power.png
is excluded by!**/*.png
client/apps/game/public/images/orders/protection.png
is excluded by!**/*.png
client/apps/game/public/images/orders/rage.png
is excluded by!**/*.png
client/apps/game/public/images/orders/reflection.png
is excluded by!**/*.png
client/apps/game/public/images/orders/skill.png
is excluded by!**/*.png
client/apps/game/public/images/orders/titans.png
is excluded by!**/*.png
client/apps/game/public/images/orders/twins.png
is excluded by!**/*.png
client/apps/game/public/images/orders/vitriol.png
is excluded by!**/*.png
client/apps/game/public/images/oroborus.png
is excluded by!**/*.png
client/apps/game/public/images/pwa-192x192.png
is excluded by!**/*.png
client/apps/game/public/images/pwa-512x512.png
is excluded by!**/*.png
client/apps/game/public/images/pwa-64x64.png
is excluded by!**/*.png
client/apps/game/public/images/resources/1.png
is excluded by!**/*.png
client/apps/game/public/images/resources/10.png
is excluded by!**/*.png
client/apps/game/public/images/resources/11.png
is excluded by!**/*.png
client/apps/game/public/images/resources/12.png
is excluded by!**/*.png
client/apps/game/public/images/resources/13.png
is excluded by!**/*.png
client/apps/game/public/images/resources/14.png
is excluded by!**/*.png
client/apps/game/public/images/resources/15.png
is excluded by!**/*.png
client/apps/game/public/images/resources/16.png
is excluded by!**/*.png
client/apps/game/public/images/resources/17.png
is excluded by!**/*.png
client/apps/game/public/images/resources/18.png
is excluded by!**/*.png
client/apps/game/public/images/resources/19.png
is excluded by!**/*.png
client/apps/game/public/images/resources/2.png
is excluded by!**/*.png
client/apps/game/public/images/resources/20.png
is excluded by!**/*.png
client/apps/game/public/images/resources/21.png
is excluded by!**/*.png
client/apps/game/public/images/resources/22.png
is excluded by!**/*.png
client/apps/game/public/images/resources/254.png
is excluded by!**/*.png
client/apps/game/public/images/resources/255.png
is excluded by!**/*.png
client/apps/game/public/images/resources/29.png
is excluded by!**/*.png
client/apps/game/public/images/resources/3.png
is excluded by!**/*.png
client/apps/game/public/images/resources/4.png
is excluded by!**/*.png
client/apps/game/public/images/resources/5.png
is excluded by!**/*.png
client/apps/game/public/images/resources/6.png
is excluded by!**/*.png
client/apps/game/public/images/resources/7.png
is excluded by!**/*.png
client/apps/game/public/images/resources/8.png
is excluded by!**/*.png
client/apps/game/public/images/resources/9.png
is excluded by!**/*.png
client/apps/game/public/images/resources/coin.png
is excluded by!**/*.png
client/apps/game/public/images/squire.png
is excluded by!**/*.png
client/apps/game/public/map.svg
is excluded by!**/*.svg
📒 Files selected for processing (3)
.gitmodules
(0 hunks).tool-versions
(0 hunks)client/apps/game/package.json
(1 hunks)
💤 Files with no reviewable changes (2)
- .gitmodules
- .tool-versions
⏰ Context from checks skipped due to timeout of 90000ms (17)
- GitHub Check: test-various (test_ownership_systems)
- GitHub Check: test-various (transport_test)
- GitHub Check: test-various (guild_test)
- GitHub Check: test-various (realm_test)
- GitHub Check: test-various (trade_test)
- GitHub Check: test-various (resource_bridge_test)
- GitHub Check: test-various (map_test)
- GitHub Check: test-various (bank_test)
- GitHub Check: test-various (hyperstructure_test)
- GitHub Check: test-various (config_test)
- GitHub Check: test-various (resources_test)
- GitHub Check: test-various (position_test)
- GitHub Check: test-various (owner_test)
- GitHub Check: test-various (combat_test)
- GitHub Check: test-various (season_test)
- GitHub Check: clippy
- GitHub Check: Run pr agent on every pull request, respond to user comments
🔇 Additional comments (3)
client/apps/game/package.json (3)
36-38
: Review Three.js version compatibility.There are multiple Three.js related packages with different version constraints:
- three: ^0.166.0
- @react-three/fiber: ^8.16.1
- @react-three/drei: ^9.101.0
- three-stdlib: ^2.29.5
Ensure these versions are compatible to avoid runtime issues.
Let's check the peer dependencies of these packages:
Also applies to: 62-65
✅ Verification successful
Three.js version compatibility verified ✓
The current Three.js version (^0.166.0) satisfies all peer dependency requirements:
- @react-three/fiber requires >=0.141
- @react-three/drei requires >=0.137
- three-stdlib requires >=0.128.0
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check peer dependencies for Three.js related packages for pkg in @react-three/fiber @react-three/drei three-stdlib; do echo "$pkg peer dependencies:" curl -s "https://registry.npmjs.org/$pkg" | jq -r '.versions | to_entries | .[-1].value.peerDependencies | select(.three != null) | .three' doneLength of output: 910
15-17
: Consider using version range for peer dependency.The starknet peer dependency is locked to a specific version (6.11.0). Consider using a version range to allow for compatible updates and reduce potential version conflicts.
Let's verify if there are newer versions available and check for any breaking changes:
22-29
: Ensure version consistency across @dojoengine packages.All @dojoengine packages are using alpha versions (1.0.4-alpha.3.1.0), except for @dojoengine/recs which uses ^2.0.13. This version mismatch might cause compatibility issues.
Let's check for the latest stable versions:
"@types/node": "^20.11.10", | ||
"@types/react": "^18.2.74", | ||
"@types/react-dom": "^18.2.21", | ||
"@types/three": "^0.163.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Update @types/three to match runtime version
The @types/three@^0.163.0 is behind the runtime three@^0.166.0. Update it to @types/three@^0.166.0 to ensure type definitions cover all features.
🔗 Analysis chain
Verify TypeScript types versions.
Ensure that @types packages versions match their runtime counterparts:
- @types/react for react@^18.2.0
- @types/three for three@^0.166.0
Let's check the recommended types versions:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check latest @types versions for main packages
for pkg in react three; do
echo "@types/$pkg compatible versions:"
curl -s "https://registry.npmjs.org/@types%2F$pkg" | jq -r '.["dist-tags"].latest'
done
Length of output: 386
Script:
#!/bin/bash
# Check runtime package versions
cat client/apps/game/package.json | jq -r '.dependencies | .["react"], .["three"]'
Length of output: 101
Summary by CodeRabbit
.tool-versions
file with Scarb and Dojo version specificationspackage.json
for the Eternum client project with comprehensive development scripts and dependencies