This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-20
Channels
- # announcements (1)
- # beginners (48)
- # cljdoc (6)
- # cljs-dev (1)
- # cljsjs (1)
- # clojure (13)
- # clojure-dev (6)
- # clojure-estonia (1)
- # clojure-europe (1)
- # clojure-finland (8)
- # clojure-gamedev (3)
- # clojure-spec (35)
- # clojure-uk (25)
- # clojurescript (9)
- # datascript (1)
- # datomic (18)
- # figwheel-main (2)
- # fulcro (5)
- # graphql (1)
- # jobs (16)
- # off-topic (76)
- # pathom (39)
- # re-frame (6)
- # reagent (7)
- # remote-jobs (6)
- # rum (3)
- # shadow-cljs (54)
- # spacemacs (8)
- # speculative (2)
- # yada (72)
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.