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
Rethinking Wasp code organization #734
Comments
We did initial round of brainstorming! Idea (1) from above:
Idea (2) from above:
@matijaSos mentioned that NextJS threw some errors on him that were coming from their generated code that was generated based on his code, and error messages was pretty mangled -> that sounds like they are doing stuff similar to us a bit? Maybe we should also check what they do there? |
Some of the things this re-organization might fix:
|
Related to #816 |
Current approach here: all code will be organized as one big npm package, with package.json file exposed. Both client and server code will be under this. @sodic is currently actively working on this. |
Having the package.json file exposed sounds great! When is this planned to happen? Also, what would upgrading an existing Wasp project entail? Thanks! |
We are planning to have this out very soon, in a couple of weeks! Most of your JS code won't need to change much, but updating will require moving some stuff around, possibly doing some db migrations (because we are also going to release improved Auth), ... . We will make sure to provide instructions / scripts on how to do the project update most easily. |
whoop whoop |
Related to #710 .
So far we have made decisions in Wasp like:
We are now trying to add IDE support for user code in ext/ (specifically for JS/TS code) and one big thing that makes this somewhat tricky to do is the way our code is organized -> generated project is organized differently than what we have in the source dir, specifically in ext/, so we have to "cheat" editor/IDE into thinking stuff in ext/ is part of the project that is not really there (because IDEs, or their plugins for JS/TS, expect some standard JS project setup, like node_modules in specific place, maybe package.json to be there, tsconfig.json, ... -> and we have none of those in source project in ext/ dir, we only have it once you go to generated project).
So the idea is -> what if we rethink stuff and reorganize Wasp in such way that we maybe avoid some of these issues? Maybe make source code more similar in setup to generated project? Or at least those parts that are needed for IDE support for JS/TS?
So let's rethink stuff @shayneczyzewski @sodic @matijaSos ! Let's let our minds wander and come up with crazy ideas. Doesn't matter if they are unbaked or a bit impossible, let's just try to come up with some new directions and see where they take us.
I suggest taking an hour or two specifically for this and just trying to come up with smth.
While thinking about ideas, here are some requirements to keep in mind:
2.1. As languages used on backend, instead of JS/TS backend or next to JS/TS backend.
2.2. As languages to write jobs in.
Some rough ideas that were mentioned so far:
The text was updated successfully, but these errors were encountered: