This small project showcases how to compile a library for use in jsCoq. It uses the Elements of Group Theory library as a demonstration.
The Makefile in this directory will clone the repo, then launch Dune
with the dune file within a jsCoq SDK environment.
- Docker
- Dune 3.1 or above
- jsCoq SDK
The latter can be downloaded and installed by running make setup.
Simply run
% npm i # if you used `make setup`, this already ran
% makeThen serve the sdk-demo directory over HTTP with e.g. npx serve or npx http-server.
By default, it will build using the jsCoq version that is listed in package.json.
If you care for a different version, run this first:
% npm run jscoq@<ver> # e.g. jscoq@latest or jscoq@0.15.0