Compiles PolyGolf to code.golf languages in your browser.
Link: polygolf-lang.github.io
The polygolf.bundle.js
file is generated by copying src/polygolf.ts
to playground/src/polygolf.ts
in the PolyGolf project
and running
esbuild playground/src/polygolf.ts --bundle --outfile=polygolf.bundle.js
The codemirror.bundle.js
file is generated by running
npm install codemirror @codemirror/theme-one-dark codemirror-lang-polygolf rollup @rollup/plugin-node-resolve @rollup/plugin-terser
node_modules/.bin/rollup src/codemirror.js -f iife -n CodeMirror -o src/codemirror.bundle.js -p @rollup/plugin-node-resolve -p @rollup/plugin-terser