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

[new release] melange and mel (0.3.0) #22459

Merged
merged 2 commits into from
Nov 7, 2022
Merged

Conversation

anmonteiro
Copy link
Contributor

Toolchain to produce JS from Reason/OCaml

CHANGES:
  • [melange] Introduce 2 explicit modes of JavaScript compilation:
    • "Batch compilation": produces .cmj and .js files at the same time (this
      is the previous behavior -- using --bs-package-output MODULE_SYSTEM:REL_PATH:JS_EXTENSION)
    • "Separate emission": produces only .cmj files with --bs-stop-after-cmj --bs-package-output REL_PATH_ONLY, and allows emitting JavaScript files
      separately, with --bs-module-type MODULE_SYSTEM -o TARGET_FILE.JS_EXTENSION
      (melange-re/melange#384)
  • [mel]: Fix mel build --watch exiting after the first change
    (melange-re/melange#401)
  • [melange]: Remove dependency on reason. Reason syntax users should install reason from their preferred package manager instead, and Melange / Dune will
    find it in $PATH (melange-re/melange#409)
  • [melange]: Remove dependency on napkin (the ReScript syntax parser). Users
    that depend on libraries written in ReScript syntax should install the mel
    package and Melange / Dune will find the rescript_syntax binary in $PATH
    (melange-re/melange#411)

CHANGES:

- [melange] Introduce 2 explicit modes of JavaScript compilation:
  - "Batch compilation": produces `.cmj` and `.js` files at the same time (this
    is the previous behavior -- using `--bs-package-output
    MODULE_SYSTEM:REL_PATH:JS_EXTENSION`)
  - "Separate emission": produces _only_ `.cmj` files with `--bs-stop-after-cmj
    --bs-package-output REL_PATH_ONLY`, and allows emitting JavaScript files
    separately, with `--bs-module-type MODULE_SYSTEM -o
    TARGET_FILE.JS_EXTENSION`
  ([melange-re/melange#384](melange-re/melange#384))
- [mel]: Fix `mel build --watch` exiting after the first change
  ([melange-re/melange#401](melange-re/melange#401))
- [melange]: Remove dependency on `reason`. Reason syntax users should install`
  reason` from their preferred package manager instead, and Melange / Dune will
  find it in `$PATH` ([melange-re/melange#409](melange-re/melange#409))
- [melange]: Remove dependency on `napkin` (the ReScript syntax parser). Users
  that depend on libraries written in ReScript syntax should install the `mel`
  package and Melange / Dune will find the `rescript_syntax` binary in `$PATH`
  ([melange-re/melange#411](melange-re/melange#411))
@mseri mseri merged commit cb68516 into ocaml:master Nov 7, 2022
@mseri
Copy link
Member

mseri commented Nov 7, 2022

Thanks

@anmonteiro anmonteiro deleted the release-mel-0.3.0 branch November 16, 2022 23:23
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.

None yet

2 participants