A simple shell script that watches for changes to CLJS files and recompiles them for you.
You must have ClojureScript already setup and have $CLOJURESCRIPT_HOME correctly set.
Put cljs-watch on your $PATH (such as in /usr/local/bin) and then simply run it from your project root:
#without options it watches the src/ directory
cljs-watch
#it can also take a directory and compile options
cljs-watch cljs-src/ '{:optimizations :none :output-to "test.js"}'
resources/public/cljs/bootstrap.jslib/ to your classpath when you run it, allowing you to have other cljs deps in that foldercljs-macros/ from the root directory and add your macros there. You can also put macros in CLOJURESCRIPT_HOME/lib/ to have them globally available.Copyright (C) 2011 Chris Granger
Distributed under the Eclipse Public License, the same as Clojure.
15 commits
1 commits
Clojure
50.7%
Shell
49.3%
A simple shell script that watches for changes to CLJS files and recompiles them for you.
You must have ClojureScript already setup and have $CLOJURESCRIPT_HOME correctly set.
Put cljs-watch on your $PATH (such as in /usr/local/bin) and then simply run it from your project root:
#without options it watches the src/ directory
cljs-watch
#it can also take a directory and compile options
cljs-watch cljs-src/ '{:optimizations :none :output-to "test.js"}'
resources/public/cljs/bootstrap.jslib/ to your classpath when you run it, allowing you to have other cljs deps in that foldercljs-macros/ from the root directory and add your macros there. You can also put macros in CLOJURESCRIPT_HOME/lib/ to have them globally available.Copyright (C) 2011 Chris Granger
Distributed under the Eclipse Public License, the same as Clojure.
15 commits
1 commits
Clojure
50.7%
Shell
49.3%