From 3279245005b83d0b1446a042f2470d42c1bebf64 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 1 Dec 2016 17:05:12 -0400 Subject: - lux-lein can now watch source-code directories to automatically build and test when changes occur. --- lux-lein/src/leiningen/lux.clj | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lux-lein/src/leiningen/lux.clj') diff --git a/lux-lein/src/leiningen/lux.clj b/lux-lein/src/leiningen/lux.clj index 6b2268d70..4902d048f 100644 --- a/lux-lein/src/leiningen/lux.clj +++ b/lux-lein/src/leiningen/lux.clj @@ -8,7 +8,8 @@ [leiningen.core.classpath :as classpath] (leiningen.lux [builder :as &builder] [test :as &test] - [repl :as &repl]))) + [repl :as &repl] + [watch :as &watch]))) ;; [Exports] (defn lux [project & args] @@ -22,6 +23,14 @@ "repl" (&repl/repl project) + "watch" + (case (second args) + "build" + (&watch/watch #(&builder/build project) project) + + "test" + (&watch/watch #(&test/test project) project)) + ;; default... - (println "Commands available: build, test, repl")) + (println "Commands available: (watch) build, (watch) test, repl")) ) -- cgit v1.2.3