If your downstream users are using the "lein-cljsbuild" plugin, note that it will automatically pick up externs and JavaScript libs within your JARs if you put them under
/closure-js/libs/your-project/some-js-lib.js /clojure-js/externs/your-project/externs.js (see https://github.com/emezeske/lein-cljsbuild/issues/95 for more details) If are targeting both Clojure and ClojureScript you might want to check out my CLJX leiningen plugin which automatically does some rewrites in your code and spits out both .clj and .cljs files. See https://github.com/lynaghk/c2/blob/master/project.clj for a project that uses that approach. Users can just put C2 in their leiningen deps as normal and can use it from clj or cljs code without having to do anything special. kevin On Friday, October 12, 2012 11:54:09 AM UTC-7, Conrad wrote: > > Hi, can someone point me towards some documentation as to the proper way > to package a ClojureScript-based library that can be used in the usual way > via leiningen? > > I'm thinking I'd be able to upload it to clojars.org (as I would do for a > Clojure library), but given that "Jars" are something Java-specific, I'm > confused as to whether that'll work... > > Can someone point me in the right direction? Thanks! > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en