-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Split StarterTemplates to AvailableTemplates #3345
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
Conversation
| {- HLINT ignore openSaasStarterTemplate "Redundant $" -} | ||
|
|
||
| openSaasStarterTemplate :: StarterTemplate | ||
| openSaasStarterTemplate = |
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.
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 |
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.
Extracted this here since it is used in both AvailableTemplates and StarterTemplates, and in this way is colocated with styleCode.
e04cca1 to
afd25f0
Compare
Deploying wasp-docs-on-main with
|
| Latest commit: |
f5ae87a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ccc695f8.wasp-docs-on-main.pages.dev |
| Branch Preview URL: | https://cprecioso-split-starter-temp.wasp-docs-on-main.pages.dev |
afd25f0 to
a6b2b49
Compare
a6b2b49 to
10d6714
Compare
ffc7d72 to
f5ae87a
Compare
infomiho
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.
The refactor is good, but I think there are some assumptions we can better encode.
waspc/cli/src/Wasp/Cli/Command/CreateNewProject/AvailableTemplates.hs
Outdated
Show resolved
Hide resolved
infomiho
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.
Ok, you convinced me
Description
As part of adding one more kind of StarterTemplate (#3338), the
StarterTemplates.hsfile 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
open-saasdevelopment version is out of sync withwaspdevelopment version #3073Type of 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 atexamples/kitchen-sink/e2e-tests.(if you added/updated a feature) I updated the starter templates atwaspc/data/Cli/templates, as needed.📜 Documentation:
(if you added/updated a feature) I added/updated the documentation inweb/docs/.🆕 Changelog: (if change is more than just code/docs improvement)
I updatedwaspc/ChangeLog.mdwith a user-friendly description of the change.(if you did a breaking change) I added a step to the current migration guide atweb/docs/migration-guides/.I bumped theversioninwaspc/waspc.cabalto reflect the changes I introduced.