Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 848 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 848 Bytes

PolyGolf Playground

Compiles PolyGolf to code.golf languages in your browser.

Link: polygolf-lang.github.io

Development

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