This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-09
Channels
- # admin-announcements (5)
- # architecture (8)
- # beginners (7)
- # boot (41)
- # braveandtrue (1)
- # cider (77)
- # clara (3)
- # cljs-dev (56)
- # cljsjs (7)
- # cljsrn (7)
- # clojure (44)
- # clojure-austin (3)
- # clojure-brasil (1)
- # clojure-hk (3)
- # clojure-russia (137)
- # clojure-spec (14)
- # clojure-uk (44)
- # clojurescript (33)
- # cloverage (3)
- # core-async (10)
- # css (1)
- # cursive (16)
- # datomic (116)
- # devcards (14)
- # emacs (1)
- # events (1)
- # funcool (2)
- # functionalprogramming (1)
- # hammock-driven-dev (1)
- # jobs-rus (124)
- # lein-figwheel (1)
- # leiningen (1)
- # liberator (4)
- # melbourne (3)
- # mount (73)
- # off-topic (3)
- # om (4)
- # om-next (15)
- # onyx (38)
- # other-languages (4)
- # perun (2)
- # proton (36)
- # protorepl (2)
- # random (1)
- # re-frame (56)
- # reagent (7)
- # specter (4)
- # testing (1)
- # untangled (13)
- # yada (18)
I’m trying to package someone else’s library, but it seems like their export structure is bad. How can I apply some namespacing to https://github.com/andrewrk/node-tmx-parser/blob/master/index.js? I’m new to writing externs, and the structure of this is somewhat different from all the examples.
https://github.com/cljsjs/packages/pull/683/files - maybe what I did recently would be helpful to you: I had to write a custom webpack config file - the
libraryTarget: "var",
library: "ReactDateRange"
namespace the exports in https://github.com/Adphorus/react-date-range/blob/master/lib/index.js
to be ReactDateRange.DateRange... etcNot sure if that'll directly translate, but I know webpack by default pulled in all the requires necessary to make it work and built a file that exported those vars.
Oh, though for this project it looks like you'll definitely need to build with browserify, so my thing is probably not a good example at all.
react-google-maps seems to be a relevant example here.
Looks like that one used: http://jmmk.github.io/javascript-externs-generator, and used the browserify "-s ReactGoogleMaps" flag to set up the library on a global var ReactGoogleMaps so that the extern generator could find it