Skip to content

Conversation

@cprecioso
Copy link
Member

@cprecioso cprecioso commented Nov 10, 2025

Description

As part of adding one more kind of StarterTemplate (#3338), the StarterTemplates.hs file was getting crowded, so I left in this file all the types and definitions, and moved the specifications of available templates to their own file.

Connections

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:

    • 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 at examples/kitchen-sink/e2e-tests.
    • (if you added/updated a feature) I updated the starter templates at waspc/data/Cli/templates, as needed.
    • Just moving stuff
  • 📜 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 at web/docs/migration-guides/.
    • I bumped the version in waspc/waspc.cabal to reflect the changes I introduced.

{- HLINT ignore openSaasStarterTemplate "Redundant $" -}

openSaasStarterTemplate :: StarterTemplate
openSaasStarterTemplate =
Copy link
Member Author

@cprecioso cprecioso Nov 10, 2025

Choose a reason for hiding this comment

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

This previously used a simpleGhReleaseArchiveTemplate, which was just one more layer that provided little abstraction nor extra functionality, and was only used here. I removed it and now the function creates the structure directly.

-- is a no-op, but it exists for future-proofing. And to make consecutive calls
-- to styleCode and styleText look similar.
styleText :: String -> String
styleText = id
Copy link
Member Author

Choose a reason for hiding this comment

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

Extracted this here since it is used in both AvailableTemplates and StarterTemplates, and in this way is colocated with styleCode.

- Context: they are used by used by `wasp new`, you can find reference to them in `Wasp.Cli. ... .StarterTemplates`.
- Check and merge all PRs with the label `merge-before-release`.
- In `StarterTemplates.hs` file, update git tag to new version of Wasp we are about to release (e.g. `wasp-v0.13.1-template`).
- In `AvailableTemplates.hs` file, update git tag to new version of Wasp we are about to release (e.g. `wasp-v0.13.1-template`).
Copy link
Member Author

Choose a reason for hiding this comment

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

I will update the Notion checklist once we merge this

@cprecioso cprecioso force-pushed the cprecioso/split-starter-templates branch from e04cca1 to afd25f0 Compare November 11, 2025 09:43
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 11, 2025

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

Latest commit: a6b2b49
Status: ✅  Deploy successful!
Preview URL: https://379e4511.wasp-docs-on-main.pages.dev
Branch Preview URL: https://cprecioso-split-starter-temp.wasp-docs-on-main.pages.dev

View logs

@cprecioso cprecioso force-pushed the cprecioso/split-starter-templates branch from afd25f0 to a6b2b49 Compare November 11, 2025 10:42
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