From 2404445827a820442bec68137570edf869009119 Mon Sep 17 00:00:00 2001 From: "Pietro F. Menna" Date: Wed, 24 Jun 2015 18:37:58 -0400 Subject: [PATCH] Added cljsbuild support --- project.clj | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/project.clj b/project.clj index de6ff30..a292268 100644 --- a/project.clj +++ b/project.clj @@ -4,8 +4,16 @@ :dependencies [[org.clojure/clojure "1.7.0-RC2"] ] :jvm-opts ["-XX:-OmitStackTraceInFastThrow"] ; this prevents JVM from doing optimizations which can remove stack traces from NPE and other exceptions + :plugins [[lein-cljsbuild "1.0.6"]] + :hooks [leiningen.cljsbuild] :source-paths ["src"] :test-paths ["test/clj"] :profiles {:dev {:dependencies [[org.clojure/test.check "0.5.9"]]} - }) + } + :cljsbuild { + :builds [{ + :source-paths ["src"] + :compiler { + :output-to "target/cljsbuild-main.js"}}] + })