-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Preact-Vite: Add framework #20390
Preact-Vite: Add framework #20390
Conversation
@shilman @IanVS The duplicated plugin problem that blocked the last two tasks has been resolved with Ian's suggestion in the Discord discussion. The stories now run in the generated sandbox, E2E tests pass and I've verified that I can run Storybook from within the sanbox and generate a new project and browse components there, too. I've configured the TS compiler to match Preact's preferred configuration for JSX ( |
@KrofDrakula great stuff!! CI is failing though Looks like the CLI is not auto-detecting the React project properly with these changes. Any idea what's going on? |
@shilman I know exactly what's going on. :) The CLI script uses RegExp to match the template name, and Not sure how you'd like me to solve that? Seems like the matcher is intentional. |
@KrofDrakula OOF. I'm not familiar with the code & didn't trace through in detail but could you do something like this?
Perhaps @yannbf has thoughts as well |
@shilman I didn't want to change existing behavior (since it currently matches any JS/TS framework combo if using Thoughts? Would we care if that expectation broke? |
This is sort of an internal tool, i think a breaking change is fine. As for what the new behavior should be, you guess is as good as mine! |
@shilman If that's the case, I'm fine with matching with the start of the string. I wasn't aware if this was exposed to a wider audience. I guess just people that create reproductions, but they would just get prompted anyways without having to specify an explicit name. Start of string match it is, then. /cc @yannbf |
@shilman Board is green, as far as I can tell, this is ready to be reviewed. |
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.
Great job @KrofDrakula -- I made a minor change to fix outdated package deps, but otherwise LGTM
@IanVS sorry i jumped the gun here -- @KrofDrakula can you please address the comments in a followup PR? |
Issue: #20052
What I did
Implemented Vite builder coupled with Preact renderer using the official
@preact/preset-vite
plugin.How to test
The implementation is still a WIP while I integrate all the necessary scaffolding for tests.It's now done.Development notes
npm adduser
doesn't work