rbuchmann / trile

A tool to compile cljs scripts on demand and run them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trile

A clojure tool and some dirty shell helpers to help you compile cljs scripts on the fly.

Requirements

md5sum, readlink, leiningen.

Usage

  • Run ./install.sh

  • Put the trile executable on your path

Write any clojurescript for node with the

#!/path/to/trile

shebang. Example:

#!/path/to/trile

(defn -main [& args]
  (go (println (<! (stdin->chan))))
  (println "Hello world!"))

core.async functions will be magically available, as well as a function stdin->chan and clojure/tools.cli.

Scripts will be compiled when changed, and just called otherwise.

Have fun!

License

Copyright © 2016 Rasmus Buchmann

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A tool to compile cljs scripts on demand and run them.

License:Eclipse Public License 1.0


Languages

Language:Clojure 62.7%Language:Shell 37.3%