Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR creates
routes
command in solid-start cli.This is similar to remix cli
route --json
command.https://github.com/remix-run/remix/blob/main/packages/remix-dev/cli/run.ts#LL26C8-L26C8
It allows you to see the generated page routes.
In an example run of
solid-start routes
of some solid-start project with simple routes, The printed result can beNOTICE:
I'm not sure it's useful.
I created a PR because it may be useful and I wanted it in order to create a plugin for
routes-gen
to create type-safe page routes (without manually cloning solid-start page regexes).
See sandulat/routes-gen#29
Also - see #588
TODO