I've started working on openpgpjs
as my first CLJSJS package, but it isn't straight-forward and I would appreciate some advice.
The openpgpjs
library is in two pieces: openpgp.js
and openpgp.worker.js
I was able to generate the externs for the first using the externs-generator
but I don't know how to (or if I even should) generate them for the latter.
This file is used by directly referencing its path.
openpgp.initWorker({ path:'openpgp.worker.js' }) // set the relative web worker path
There are also two different procedures outlined in https://clojurescript.org/reference/packaging-foreign-deps and https://github.com/cljsjs/packages/wiki/Creating-Packages; I'm assuming that the CLJSJS documentation is what I should follow.