Skip to content
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

chore(templates): add SSG template #1

Merged
merged 5 commits into from
Jul 28, 2023
Merged

chore(templates): add SSG template #1

merged 5 commits into from
Jul 28, 2023

Conversation

JoviDeCroock
Copy link
Member

This adds an SSG-template using vite-plugin-ssr, I am however curious how we'd incorporate this in our current setup would we do

-> base/ssg?
--> base ? use-router? : none
--> useTS ?

@JoviDeCroock JoviDeCroock requested a review from rschristian July 27, 2023 17:07
Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

Workflow looks great to me!

src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
@JoviDeCroock JoviDeCroock force-pushed the ssr-template branch 3 times, most recently from 36bcd6c to 08c05e8 Compare July 27, 2023 17:28
@JoviDeCroock JoviDeCroock marked this pull request as ready for review July 27, 2023 17:29
prompts.confirm({
message: 'Use router?',
initialValue: false,
}),
}) : Promise.resolve(false),
Copy link
Member Author

Choose a reason for hiding this comment

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

@rschristian do you know if there is a better way to do this? It looks like it goofs up our types

Copy link
Member

Choose a reason for hiding this comment

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

I do not, no. Clack does have some wonky types in places but it's been something I'm fine with // @ts-ignore'ing or whatever if the red squiggle is annoying for people.

We can ungroup the prompts, do something like this to get better control flow, but it's perhaps a bit repetitive.

@JoviDeCroock JoviDeCroock merged commit dd2da4d into master Jul 28, 2023
@rschristian rschristian deleted the ssr-template branch July 31, 2023 06:02
rschristian pushed a commit that referenced this pull request Aug 4, 2023
* ssg template

* todos

* fixes

* use appType

* ignore error
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