Skip to content

Add production flag for production-grade JS #852

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

Merged
merged 1 commit into from
Apr 3, 2025
Merged

Conversation

dmjio
Copy link
Owner

@dmjio dmjio commented Apr 3, 2025

  • Adds bun build --production to create js/miso.prod.js
  • Make miso-prod-js derivation.
  • Re-add js/miso.js, js/miso.prod.js "binaries" to git
  • Add CPP for production flag (not default), for saddle workflows
  • Add build-prod to package.json
  • Put bun run build-prod in CI, along with miso-prod-js

We have to commit both (prod js/miso.prod.js and dev js/miso.js) "binaries" to source control now. This is because GitHub users that fetch miso from cabal.project need the js present in order to build. Adding the production flag is a bonus, but this will work with.

- Adds 'bun build --production' for `miso.prod.js`
- Make `miso-prod-js` derivation.
- Re-add `js/miso.js`, `js/miso.prod.js` to git
- Add CPP for production flag (not default), for saddle workflows
- Add `build-prod` to package.json
- Put `bun run build-prod` in CI, along with `miso-prod-js`

We have to commit both (prod and dev) js/ "binaries" to source control
now. This is because GitHub users that fetch miso from a
`cabal.project` need the js present. Adding the production flag is a bonus.
@dmjio
Copy link
Owner Author

dmjio commented Apr 3, 2025

This one is for you @mastarija

@dmjio dmjio merged commit dab0e53 into master Apr 3, 2025
3 checks passed
@dmjio dmjio deleted the bun-build-prod branch April 3, 2025 22:42
@mastarija
Copy link

This one is for you @mastarija

Thanks man. I got it twerking ;)

image

@dmjio
Copy link
Owner Author

dmjio commented Apr 4, 2025

Well done 🔥

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.

2 participants