Skip to content

Commit

Permalink
add changelog entries for recent changes (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Nov 6, 2022
1 parent d6f4198 commit e6c0fab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
17 changes: 17 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
Unreleased
---------------
- [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`
([#384](https://github.com/melange-re/melange/pull/384))
- [mel]: Fix `mel build --watch` exiting after the first change
([#401](https://github.com/melange-re/melange/pull/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` ([#409](https://github.com/melange-re/melange/pull/409))

0.2.0 2022-10-24
--------------

Expand Down
3 changes: 0 additions & 3 deletions jscomp/test/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "melange-runtime-tests",
"scripts": {
"postinstall": "eval $NIX_NODE_MODULES_POSTINSTALL"
},
"devDependencies": {
"mocha": "^10.0.0"
}
Expand Down
5 changes: 1 addition & 4 deletions nix/ci/test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,10 @@ stdenv.mkDerivation {
nativeBuildInputs = with ocamlPackages; [ ocaml findlib dune ];
buildInputs = [ yarn nodejs packages.melange packages.mel ocamlPackages.reason ];

NIX_NODE_MODULES_POSTINSTALL = ''
ln -sfn ${packages.melange}/lib/melange/runtime node_modules/melange
'';

checkPhase = ''
# https://github.com/yarnpkg/yarn/issues/2629#issuecomment-685088015
yarn install --frozen-lockfile --check-files --cache-folder .ycache && rm -rf .ycache
ln -sfn ${packages.melange}/lib/melange/runtime node_modules/melange
mel build -- --display=short
node ./node_modules/.bin/mocha "./*_test.js"
Expand Down

0 comments on commit e6c0fab

Please sign in to comment.