Once emscripten is set up, you just clone the repo and do:
make clean;RELEASE=1 BOARD=EMSCRIPTEN2 make
But if you have written your library in JS it's probably easier to just upload to the existing emulator's storage
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Once emscripten is set up, you just clone the repo and do:
make clean;RELEASE=1 BOARD=EMSCRIPTEN2 make
But if you have written your library in JS it's probably easier to just upload to the existing emulator's storage