Unify our naming around the generated app (code)#3949
Merged
FranjoMindek merged 5 commits intomainfrom Mar 20, 2026
Merged
Conversation
FranjoMindek
commented
Mar 20, 2026
| data DbRootDir | ||
|
|
||
| instance AppComponentRootDir DbRootDir | ||
| instance GeneratedAppComponentDir DbRootDir |
Contributor
Author
There was a problem hiding this comment.
Just moved it below, so all connected data is next to each other.
@wasp.sh/wasp-cli
@wasp.sh/wasp-cli-darwin-arm64-unknown
@wasp.sh/wasp-cli-darwin-x64-unknown
@wasp.sh/wasp-cli-linux-x64-glibc
@wasp.sh/wasp-cli-linux-x64-musl
commit: |
infomiho
reviewed
Mar 20, 2026
Member
infomiho
left a comment
There was a problem hiding this comment.
Much better, nice!
Left one comment
waspc/cli/exe/Main.hs
Outdated
| cmd " clean Deletes the generated app, all cached artifacts, and the node_modules dir.", | ||
| " Wasp equivalent of 'have you tried closing and opening it again?'.", | ||
| cmd " build Generates full web app code, ready for deployment. Use when deploying or ejecting.", | ||
| cmd " build Generates the full web app, ready for deployment. Use when deploying or ejecting.", |
Member
There was a problem hiding this comment.
While we are here, let's maybe drop the ejecting bit? We don't really talk about that concept anywhere as a supported thing. Of course you can take the code and go with it, but you can't really eject from Wasp or Wasp SDK anymore.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We had an old TODO:
The name
ProjectRootDiris really confusing because it is very close toWaspProjectDirand it's easy to confuse the two.The
ProjectRootDiris of course the.wasp/out/dir.The
WaspProjectDiris the user's project root dir.Most likely the reason why the TODO suggests using the
GeneratedCodeDirdir instead.I wanted to resolve this issue since these names often confused me, and Claude can do it easily. But renaming to
GeneratedCodeDirgave me another problem.Now we had all:
GeneratedCodeDir,AppComponentRootDirandGeneratedSrcDirinWasp/Generator/Common.hs. The problem is that all these names are related and concepts with structure, but that is not clear in their names.AppComponentRootDiris app component inGeneratedCodeDir, e.g..wasp/out/server/.GeneratedSrcDirissrc/dir in any app component, e.g..wasp/out/server/src/.So I refactored further:
ProjectRootDir->GeneratedAppDirAppComponentRootDir->GeneratedAppComponentDirGeneratedSrcDir->GeneratedAppComponentSrcDirIn other words, I'm throwing away the whole "generated code" term and I'm suggesting using the "generated app" term instead. Other than that, I make sure that names related to this concept include it as a prefix.
The most important file to look at is: waspc/src/Wasp/Generator/Common.hs