-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(cli): qwik new component | route #2426
Conversation
Run & review this pull request in StackBlitz Codeflow. |
I hope this is something Qwik would be interested in, I'm happy to continue supporting it |
This is very cool! nnot sure i understand the |
No longer relevant
|
@manucorporat I've simplified this PR and updated the description. It should now make more sense |
@manucorporat to keep this on your radar I've added a dataLoader to the route template. It should make getting started with loaders easier. |
Looks like the e2e test failed due to a network issue |
let me close and reopen to trigger the checks again |
Thanks @shairez !! |
+1 for merging this 🙏 great job @DustinJSilk 🙏 |
I would love to merge this PR! @DustinJSilk |
Hi @DustinJSilk 👋 i merge your changes into a new branch here on the repo to make the collaboration a bit easier. thanks again very much for all the work put into this PR 🙏 |
What is it?
Description
A new interactive CLI command to improve the DX experience:
qwik new
: create a new component or route fileYou can also add options to create a vitest or doc file with
--vitest
/--doc
arguments.Developers can save this in their npm scripts for quick access
A long form input is also possible to skip the interactive input:
qwik new component my-comp --vitest --doc
orqwik new route my-route --vitest --doc
Use cases and why
component.tsx
file.spec.tsx
.stories.tsx
I've added just 4 basic templates:
Checklist: