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

add plugin @routes-gen/solid-start #29

Merged
merged 18 commits into from
Jan 17, 2023

Conversation

nirtamir2
Copy link
Contributor

@nirtamir2 nirtamir2 commented Dec 30, 2022

This PR adds a new plugin @routes-gen/solid-start.
You can see it running and published under @nirtamir2/routes-gen-solid-start and play with it in https://github.com/nirtamir2/solid-start-starter/tree/routes-gen-published

Closes #28

@nirtamir2 nirtamir2 marked this pull request as ready for review December 30, 2022 22:19
@sandulat
Copy link
Owner

sandulat commented Jan 1, 2023

@nirtamir2 answered in #28.

resolve([]);
} else {
const routes = JSON.parse(stdout) as Array<SolidStartRouteData>;
const filteredRoutes = routes.filter((route) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I see in the remix plugin - I filter the * paths.

export const routes: Driver["routes"] = async () => {
const parsedRoutes = await new Promise<Array<SolidStartRouteData>>(
async (resolve) => {
exec(`npx solid-start routes`, (error, stdout) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since v0.2.10 this is valid command

@nirtamir2
Copy link
Contributor Author

@sandulat It's ready for review! 🎉

@sandulat
Copy link
Owner

sandulat commented Jan 8, 2023

@nirtamir2 Sorry for the delay, I need to find some time to test it, since I've never used Solid/Solid Start before.

@nirtamir2
Copy link
Contributor Author

@sandulat you can use https://github.com/nirtamir2/solid-start-starter/tree/routes-gen-published and replace my published package with the code you want, or just inline it like I've done in https://github.com/nirtamir2/solid-start-starter/tree/routes-gen

@nirtamir2
Copy link
Contributor Author

@sandulat Any update? Can I help somehow?

@sandulat
Copy link
Owner

@nirtamir2 At first glance, everything seems to be working. After doing the tiny fixes I've requested above, we can publish the package right away.

@nirtamir2
Copy link
Contributor Author

@sandulat Thanks! I fixed the issues

@sandulat sandulat merged commit 68625dc into sandulat:main Jan 17, 2023
@sandulat
Copy link
Owner

Thank you so much @nirtamir2! <3

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.

None yet

2 participants