Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A clojurescript compilation watcher

branch: master

remove heap and memory specifications to match clojurescript

Signed-off-by: Chris Granger <ibdknox@gmail.com>
latest commit af77283e7a
Chris Granger authored September 14, 2011
Octocat-spinner-32 src move the imports into the do to prevent the extra prints August 29, 2011
Octocat-spinner-32 test import August 20, 2011
Octocat-spinner-32 .gitignore import August 20, 2011
Octocat-spinner-32 README.md readme improvement September 14, 2011
Octocat-spinner-32 cljs-watch remove heap and memory specifications to match clojurescript September 14, 2011
Octocat-spinner-32 project.clj import August 20, 2011
README.md

CLJS watcher

A simple shell script that watches for changes to CLJS files and recompiles them for you.

Usage

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"}'

Notes

  • the default output-to is set to resources/public/cljs/bootstrap.js
  • it will add the local lib/ to your classpath when you run it, allowing you to have other cljs deps in that folder
  • to add custom macros, you can use create a folder called cljs-macros/ from the root directory and add your macros there. You can also put macros in CLOJURESCRIPT_HOME/lib/ to have them globally available.

License

Copyright (C) 2011 Chris Granger

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.