Skip to content

Conversation

@FranjoMindek
Copy link
Contributor

Description

Moves generator files so that they follow the templates structure.
Declutters SdkGenerator.hs a lot.

Type of change

  • 🔧 Just code/docs improvement
  • 🐞 Bug fix
  • 🚀 New/improved feature
  • 💥 Breaking change

Checklist

  • I tested my change in a Wasp app to verify that it works as intended.

  • 🧪 Tests and apps:

    • I added unit tests for my change.
    • (if you fixed a bug) I added a regression test for the bug I fixed.
    • (if you added/updated a feature) I added/updated e2e tests in examples/kitchen-sink/e2e-tests.
    • (if you added/updated a feature) I updated the starter templates in waspc/data/Cli/templates, as needed.
    • (if you added/updated a feature) I updated the example apps in examples/, as needed.
      • (if you updated examples/tutorials) I updated the tutorial in the docs (and vice versa).
  • 📜 Documentation:

    • (if you added/updated a feature) I added/updated the documentation in web/docs/.
  • 🆕 Changelog: (if change is more than just code/docs improvement)

    • I updated waspc/ChangeLog.md with a user-friendly description of the change.
    • (if you did a breaking change) I added a step to the current migration guide in web/docs/migration-guides/.
    • I bumped the version in waspc/waspc.cabal to reflect the changes I introduced.

…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
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 23, 2026

Deploying wasp-docs-on-main with  Cloudflare Pages  Cloudflare Pages

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

View logs

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 23, 2026

Open in StackBlitz

@wasp.sh/wasp-cli

npx https://pkg.pr.new/@wasp.sh/wasp-cli@3653

@wasp.sh/wasp-cli-darwin-arm64-unknown

npx https://pkg.pr.new/@wasp.sh/wasp-cli-darwin-arm64-unknown@3653

@wasp.sh/wasp-cli-darwin-x64-unknown

npx https://pkg.pr.new/@wasp.sh/wasp-cli-darwin-x64-unknown@3653

@wasp.sh/wasp-cli-linux-x64-glibc

npx https://pkg.pr.new/@wasp.sh/wasp-cli-linux-x64-glibc@3653

@wasp.sh/wasp-cli-linux-x64-musl

npx https://pkg.pr.new/@wasp.sh/wasp-cli-linux-x64-musl@3653

commit: 1b5e01c

Copy link
Contributor

@sodic sodic left a 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)
Copy link
Contributor

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 =
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this one

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@FranjoMindek FranjoMindek changed the base branch from franjo/tsconfig-tracker-bullet-2 to main January 27, 2026 10:05
…re-sdk-files

# Conflicts:
#	waspc/src/Wasp/Generator/SdkGenerator.hs
@FranjoMindek FranjoMindek changed the base branch from main to franjo/tsconfig-tracker-bullet-2 January 27, 2026 10:08
…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
@FranjoMindek FranjoMindek requested a review from a team as a code owner February 4, 2026 09:12
@FranjoMindek FranjoMindek requested review from cprecioso and removed request for a team February 4, 2026 09:12
@FranjoMindek FranjoMindek removed the request for review from cprecioso February 4, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants