You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[mercury] The Mercury implementation is divided into the @genexus/mercury-build and @genexus/mercury-cli packages. Additionally, the @genexus/vite-plugin-mercury package has been added to facilitate configuration in Vite-based environments (#646)
* Set bundle mappings in the window
This will help us to avoid issues when the Mercury dependency is duplicated. Also, this help us to set this mapping inline in the HTML.
* Add an utility to calculate the gzip size of files that are downloaded to the browser
* Improve how the bundle sizes are printed to the output
* Add the `viteMercury` plugin for Vite environments
This plugin replaces the need for using the CLI in Vite environments.
* Add tests for validating the bundle size
* Add tests for validating the gzipped size
* Add support to inline css bundles in the html head
* Improve path normalization
* Add support to preload CSS bundles
Also, inline the base/base bundle by default and preload the base/icons bundle by default.
* Add support to specify the fetch priority
Also, fix default values for mercuryOptions
* Add comment for an upcoming feature (lightningcss)
* Inline the "resets/box-sizing" css bundle by default
* Split the Mercury DS implementation into the mercury-build, mercury-cli and vite-mercury-plugin packages
Now, @genexus/mercury only contains the core of Mercury, and we have packages for bulding Mercury, using it through out a CLI, and a plugin to work with Vite.
Breaking changes:
- The default path for the fonts is now "/assets/fonts/" instead of "./assets/fonts/"
- The default path for the icons is now "/assets/icons/" instead of "./assets/icons/"
* Add support to build the Mercury CSS bundles
* Fix Mercury build
* More fixes for the Mercury build
* Update eslint.config.js
* Remove comments
* Copy assets when building the css
We are no longer splitting the scss build with the assets copy, so we can centralize the Mercury build process
* Improve build output style
* Improve script names
* Fixes for building the dist for Mercury
* Update validate-args.ts
* Remove bulding scripts for the showcase in the Mercury package
* Move assets file to the src folder
* Update tsconfig.json
* New dev server for the showcase
* Add missing commits
* Fix wrong placeholder values
* Add missing commit
* Refresh the showcase when rebuilding Mercury
* Improve main readme for local development
* Avoid memory leaks when the build crashes
* Fix dev server not working properly
* Build Mercury for usage
* Remove no longer required code for the mercury-cli package
* Properly build mercury for the distribution of the showcase
* Remove --outDir argument
Now, all the generated CSS files are located in the "node_modules/.genexus/mercury/assets/css" folder
* Copy the fonts and icons when building Mercury for usage
* Move Mercury plugins to the mercury-plugins folder
* Use TS GO for faster dev builds
* Force "hoisted" installs by adding bunfig.toml file
* Complete the implementation for vite-mercury-plugin
* Fix conflicts between NodeJS' threads and Vite's build process
* Don't clear fonts and icons folders to let multiple plugins add assets in those destinations
* Improvements for the React installation docs
* Add readme for the @genexus/mercury-build package
* Improve package.json description
* Fix ESM only export not working for require
* Delete unused script
* Use bun for running build-scss-and-copy-assets script and delete unused script
* Fix showcase dev server
* Fix tests not working in common package
* More fixes for running tests in the common package
* Rename "vite-mercury-plugin" to "vite-plugin-mercury"
* Try to fix workflows
* Fix missing "bun" runner in workflows
* Try to fix workflow
* Try to fix workflows again
* Comment out workflow to test ci
* Comment out workflow step
* Update install-and-deploy.yml
* Fix tests
* Fix code scanning result issue
* Remove unused "start.watch" script
* Fix typo in react docs
* Use TS and bun for all scripts
* Update NextJS installation guide
* Update installation-for-react.md
* Move the bundle-to-hash-mapping.ts file to the "node_modules/.genexus/mercury/" folder
* Improve all installation readmes
* Improve/add readmes for the new packages
* Fix image path
* More improvements for readmes
* Fix typo
* Add workflows for the new packages
* Remove "mercury" binnary from the mercury core
* Update bun.lock
* Improve the visualization of the bundle size table
0 commit comments