node.js - REPL session for a ClojureScript library in the vein of `lein try` -
sometimes want try out library in repl. example when need know date 100 days now, do:
lein try clj-time (require '[clj-time.core :as t]) (t/plus (t/today) (t/days 100))
or boot:
boot -d clj-time repl -e "(require '[clj-time.core :as t])" (t/plus (t/today) (t/days 100))
this great, still has few seconds of start time.
my question: can same functionality using clojurescript , node , perhaps have faster startup time? how can example above cljs-time?
you can use planck jar you're wanting try adding planck's "classpath" (it's not actual classpath since there's no jvm involved). see planck dependencies documentation.
e.g.:
planck -c ~/.m2/repository/com/andrewmcveigh/cljs-time/0.4.0/cljs-time-0.4.0.jar
Comments
Post a Comment