Comments (1)
We've released Wasp 0.12.0 with some separation of dependencies, but we weren't thorough enough.
The issue still stands: figure out what belongs where and remove duplicates and redundancies.
Idea: Why not move all Wasp's dependencies from the user's package.json
to the SDK's package.json
. The main reasons against doing this were:
- This packages (e.g., typescript, react) are so crucial to Wasp that they should be listed in the
package.json
explicitly. - What happens if the user (by accident) specifies one of these dependencies themselves? Does it break the app?
Finally, decide which packages can and should be peer dependencies (or dev dependencies).
Especially pay attention to:
- Types (e.g.,
@types/react
,@types/react-router-dom
) - Where should these go? Investigate the implications of putting them into each possible location:user:dependencies
vsuser:devDependencies
vssdk:dependencies
vssdk:devDependencies
.
- Packages Wasp implicitly needs - Packages that Wasp doesn't list as dependencies, but its code can't work without them (e.g.,
cors
package for configuring middleware, possibleyscreen
package for testing). This is bad API design on our part, and we should figure out what to do with those packages. - Core packages - Wasp's core dependencies: React, Typescript, Vite, etc.
from wasp.
Related Issues (20)
- Revisit types exported from the SDK
- Explore ways to check package.json `exports` paths
- Run headless tests on `waspc/examples/todoApp`
- Make sure we log OAuth errors in the server console HOT 1
- Replace `superjson` with a generated serialization layer
- Make Wasp more robust (fewer `wasp clean` calls) HOT 2
- User defined routes can override `/oauth/callback` and break OAuth flow
- In the docs, mention early that `wasp clean` is a good way to fix weird situations
- Automatic Crud Override Issue HOT 1
- Provide a way to user for populating user as part of another Prisma entity HOT 1
- In Auth docs, advise how to deal with User data (storing it in User object vs fetching from Auth -> Identities)
- Make `release` default branch
- Websocket throws "Unknown Session ID" when trying to connect
- Add gpt4-o to Mage
- Make Wasp's warning to migrate the dev database more prominent
- Make TS SDK plan
- How to change the theme color, the default is yellow, how to change it to blue HOT 2
- Re-evaluate Wasp's testing story
- Fix runtime guessing for server-side operations API
- deleteDocument } from 'wasp/client/operations'; HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasp.