build: add bytecode compilation and minification to package generation#63
Conversation
- Enable bytecode compilation for 2x faster CLI startup - Add minification for smaller binary size - Improve build output formatting with progress indicators - Add performance timing measurement - Update documentation to reflect @pleaseai/code package - Include build feature summary in output - Simplify launcher publication command This improves the generated npm packages performance and distribution size for the @pleaseai/code CLI tool.
Summary of ChangesHello @amondnet, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly upgrades the build process for the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request enhances the build process for the @pleaseai/code CLI by introducing bytecode compilation and minification, which should improve startup performance and reduce the binary size. The changes also include significant improvements to the build script's console output, making it more informative and user-friendly with progress indicators and performance timing. My review focuses on the correctness of the new build options and the implementation of the new UI features. I've identified a formatting issue in the new summary box and suggested an opportunity to parallelize the build process for better performance. Overall, this is a solid set of improvements.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #63 +/- ##
==========================================
+ Coverage 38.71% 39.35% +0.64%
==========================================
Files 59 59
Lines 6515 6489 -26
==========================================
+ Hits 2522 2554 +32
+ Misses 3993 3935 -58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Use dynamic padding for summary line to prevent UI misalignment
Summary
Improves the build output and performance of the generated @pleaseai/code CLI packages:
Changes
bytecode: truein Bun.build() for compiled binariesminify: truein Bun.build() for package generationsourcemap: 'none'for production buildperformance.now()Test plan
bun scripts/generate-packages.tsnpm/directory