-
-
Notifications
You must be signed in to change notification settings - Fork 522
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(template): add vite template #3071
Conversation
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.
Left a few initial comments, but the overall approach looks good to me! Thanks so much for doing this work! 🙇♀️
To answer #2:
I think more configuration should be left to the user to implement in vite.config.xxx rather than integrated in the template.
I'm fine with this approach, especially for more experienced Vite users, it will allow them more customization options. We can always make the template more or less opinionated in later drafts.
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.
not sure if the design of VitePluginConfig makes sense, it references WebpackPluginConfig.
In my opinion, the WebpackPluginConfig
design could use some improvement. For example, why are config.mainConfig
and config.renderer.config
named that way? It's not very intuitive.
I think more configuration should be left to the user to implement in vite.config.xxx rather than integrated in the template.
I think this is a good initial approach. We can always add more Forge-specific configuration if needed.
I removed the We're thinking of removing it in the long term now that Draft PRs are a builtin GitHub feature. |
@caoxiemeihao can you rebase with the latest |
@erickzhao Yep! Good night! |
#3071 (comment) |
@caoxiemeihao |
How to use 'yarn make' without copy source code? @caoxiemeihao |
6f68476
to
ed62ab2
Compare
Hiya 👋 |
@warrenbuckley we're hopefully looking to getting this PR merged soon. Currently going through the code review process. |
Awesome, can't wait for this! Also, there should be a TypeScript option. |
Co-authored-by: Black-Hole <158blackhole@gmail.com>
Co-authored-by: Black-Hole <158blackhole@gmail.com>
Co-authored-by: Black-Hole <158blackhole@gmail.com>
Co-authored-by: Black-Hole <158blackhole@gmail.com>
Co-authored-by: Black-Hole <158blackhole@gmail.com>
This comment was marked as off-topic.
This comment was marked as off-topic.
I think CI is failing we bumped the version up to 6.1.0, but it should be aligned with the rest of the monorepo package versions ( https://www.npmjs.com/package/syncpack The version number will be automatically bumped by Lerna during the publishing process! |
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.
LGTM. Thanks, @caoxiemeihao!
chore: update lockfile
Any hope to see this officially released soon? Very eager to give it a try :] |
Addresses #2954
Summarize your changes:
Support
--template=vite
:)Hi! here. 👋
@erickzhao @VerteDinde
Some additional help is needed here.
VitePluginConfig
makes sense, it referencesWebpackPluginConfig
.vite.config.xxx
rather than integrated in the template.@electron-forge/plugin-vite
needs to write test code