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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -