aboutsummaryrefslogtreecommitdiff
path: root/lux-lein/src/leiningen/lux.clj
diff options
context:
space:
mode:
Diffstat (limited to 'lux-lein/src/leiningen/lux.clj')
-rw-r--r--lux-lein/src/leiningen/lux.clj13
1 files changed, 11 insertions, 2 deletions
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"))
)