Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

codemirror-ml

An OCaml port of CodeMirror 6 for native OCaml and JavaScript via Melange. The repository contains the build scaffold and portable runtime utilities. The specification defines the scope. The parity matrix tracks progress by package.

The Lettera-like editor specification defines the product built on the port and LUI.

Development

CI uses OCaml 5.5.0, opam, and Node.js 24. Node.js runs the Melange tests.

opam install . --deps-only --with-test
opam exec -- dune build @all
opam exec -- dune runtest
opam exec -- dune build @melange-compile
opam exec -- dune build @melange-tests

dune runtest and dune build @native-tests run the native smoke and runtime utility tests. @melange-compile emits JavaScript, and @melange-tests compiles and runs the corresponding tests under Node.js. Run opam exec -- dune build @style-mod-perf for the portable style registry benchmark.

Install OCamlFormat 0.29.0 with opam install ocamlformat.0.29.0, then run opam exec -- dune build @fmt to check formatting.

Libraries

Directory Dune library OCaml module Build modes
packages/state/ codemirror-ml.state Codemirror_ml_state Native, bytecode, Melange
packages/view/ codemirror-ml.view Codemirror_ml_view Native, bytecode, Melange
packages/crelt/ codemirror-ml.crelt Crelt Native, bytecode, Melange
packages/style-mod/ codemirror-ml.style-mod Style_mod Native, bytecode, Melange
packages/w3c-keyname/ codemirror-ml.w3c-keyname W3c_keyname Native, bytecode, Melange
platform/native/ codemirror-ml.native Codemirror_ml_native Native, bytecode
platform/melange/ codemirror-ml.melange Codemirror_ml_melange Melange

The state package is backend-independent. The view package depends on state, and each platform adapter depends on the view package. Directories and library names mirror upstream CodeMirror package boundaries.

License

MIT, with upstream CodeMirror copyright notices in LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages