Skip to content
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(version): add version variable to bundle js #1024

Merged

Conversation

chrispymm
Copy link
Contributor

This PR should include the semantic release version number within the exported bundle js.

It does this by including a version.js file which contains a placeholder version string assigned to MOJFrontend.version

There is then a plugin for semantic release which should be able to find and replace this string within the compiled js output 🤞

@chrispymm chrispymm requested a review from a team as a code owner December 16, 2024 22:48
@chrispymm chrispymm changed the base branch from main to include-compiled-assets-in-package December 18, 2024 13:49
@chrispymm chrispymm merged commit 69fc80c into include-compiled-assets-in-package Dec 18, 2024
18 checks passed
@chrispymm chrispymm deleted the export-version-in-bundle branch December 18, 2024 13:49
chrispymm added a commit that referenced this pull request Dec 18, 2024
* fix: include compiled css and js in the package

This PR adjusts the build:package task to also output a compiled minified js and css file. It also
fixes the compiled output including jQuery, which didn't  work due to jQuery ending up bundled by
the umd

* fix(version): add version variable to bundle js (#1024)
gregtyler pushed a commit that referenced this pull request Dec 18, 2024
## [3.2.2](v3.2.1...v3.2.2) (2024-12-18)

### Bug Fixes

* include compiled css and js in the package ([#1028](#1028)) ([c4f2d6f](c4f2d6f)), closes [#1024](#1024)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant