-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Move SDK generator files to match the new folder structure #3653
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
base: franjo/tsconfig-tracker-bullet-2
Are you sure you want to change the base?
Move SDK generator files to match the new folder structure #3653
Conversation
# Conflicts: # waspc/data/Generator/templates/sdk/wasp/tsconfig.json
…ranch' into franjo/tsconfig-tracker-bullet-2 # Conflicts: # waspc/cli/src/Wasp/Cli/Command/Build.hs # waspc/src/Wasp/Generator/SdkGenerator.hs # waspc/src/Wasp/Generator/SdkGenerator/Common.hs
…re-sdk-files # Conflicts: # waspc/src/Wasp/Generator/SdkGenerator.hs # waspc/src/Wasp/Generator/SdkGenerator/Auth/OAuthAuthG.hs # waspc/src/Wasp/Generator/SdkGenerator/Common.hs # waspc/src/Wasp/Generator/SdkGenerator/Core/Common.hs # waspc/src/Wasp/Generator/SdkGenerator/Root/Common.hs # waspc/src/Wasp/Generator/SdkGenerator/UserCore/AuthG.hs # waspc/src/Wasp/Generator/SdkGenerator/UserCore/Client/OperationsGenerator.hs # waspc/src/Wasp/Generator/SdkGenerator/UserCore/Common.hs # waspc/src/Wasp/Generator/SdkGenerator/UserCore/EnvValidation.hs # waspc/src/Wasp/Generator/SdkGenerator/UserCore/Server/EmailSenderG.hs # waspc/waspc.cabal
Deploying wasp-docs-on-main with
|
| Latest commit: |
1b5e01c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e0caef32.wasp-docs-on-main.pages.dev |
| Branch Preview URL: | https://franjo-restructure-sdk-files.wasp-docs-on-main.pages.dev |
@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: |
sodic
left a comment
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.
Very nice!
If my assumptions about no changes are correct, this is starting to look great.
Nice work!
| let userNpmDeps = N.getUserNpmDepsForPackage spec | ||
| errorOrWaspFrameworkNpmDeps = | ||
| N.buildWaspFrameworkNpmDeps spec (SG.npmDepsFromWasp spec) (WG.npmDepsFromWasp spec) | ||
| N.buildWaspFrameworkNpmDeps spec (ServerGenerator.npmDepsFromWasp spec) (WebAppGenerator.npmDepsFromWasp spec) |
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.
It's kind of long so I'd go the other way. But any way is fine, you choose. As long as it's consistent :)
| import Wasp.Generator.SdkGenerator.Core.Common (mkTmplFd) | ||
|
|
||
| genCoreTsconfigProject :: AppSpec -> Generator [FileDraft] | ||
| genCoreTsconfigProject _spec = |
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.
During the refactoring PR, we were removing these redundant _spec arguments. We should decide what do do with them and keep it consistent.
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.
Removed this one
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.
I'm assuming this is just moved stuff, no changes.
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.
Yep, most of old sdk generator is here.
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.
I'm assuming this is just moved stuff, no changes.
…re-sdk-files # Conflicts: # waspc/src/Wasp/Generator/SdkGenerator.hs
…re-sdk-files # Conflicts: # waspc/src/Wasp/Generator/NpmInstall/Common.hs # waspc/src/Wasp/Generator/SdkGenerator.hs
…re-sdk-files # Conflicts: # waspc/src/Wasp/Generator/SdkGenerator.hs # waspc/src/Wasp/Generator/SdkGenerator/UserCore/Client/OperationsGenerator.hs # waspc/src/Wasp/Generator/SdkGenerator/UserCore/Server/OperationsGenerator.hs
Description
Moves generator files so that they follow the templates structure.
Declutters
SdkGenerator.hsa lot.Type of change
Checklist
I tested my change in a Wasp app to verify that it works as intended.
🧪 Tests and apps:
examples/kitchen-sink/e2e-tests.waspc/data/Cli/templates, as needed.examples/, as needed.examples/tutorials) I updated the tutorial in the docs (and vice versa).📜 Documentation:
web/docs/.🆕 Changelog: (if change is more than just code/docs improvement)
waspc/ChangeLog.mdwith a user-friendly description of the change.web/docs/migration-guides/.versioninwaspc/waspc.cabalto reflect the changes I introduced.