From 2404445827a820442bec68137570edf869009119 Mon Sep 17 00:00:00 2001 From: "Pietro F. Menna" Date: Wed, 24 Jun 2015 18:37:58 -0400 Subject: [PATCH 1/3] 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"}}] + }) From c1cb056f4e6235ade3412fa87f9c7d25fa872538 Mon Sep 17 00:00:00 2001 From: "Pietro F. Menna" Date: Thu, 25 Jun 2015 09:43:59 -0400 Subject: [PATCH 2/3] Fixed warning message during 'lein test' because of the hooks --- project.clj | 1 - 1 file changed, 1 deletion(-) diff --git a/project.clj b/project.clj index a292268..474fe6d 100644 --- a/project.clj +++ b/project.clj @@ -5,7 +5,6 @@ ] :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 From 64168263743ba6a4cff0706e98dab3e5f5ae4910 Mon Sep 17 00:00:00 2001 From: "Pietro F. Menna" Date: Fri, 26 Jun 2015 13:35:18 -0400 Subject: [PATCH 3/3] Changed directory structure for test directory to be the same as for src --- project.clj | 3 ++- test/{clj => }/com/rpl/specter/core_test.clj | 0 test/{clj => }/com/rpl/specter/test_helpers.clj | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename test/{clj => }/com/rpl/specter/core_test.clj (100%) rename test/{clj => }/com/rpl/specter/test_helpers.clj (100%) diff --git a/project.clj b/project.clj index 474fe6d..96fc4de 100644 --- a/project.clj +++ b/project.clj @@ -6,13 +6,14 @@ :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"]] :source-paths ["src"] - :test-paths ["test/clj"] + :test-paths ["test"] :profiles {:dev {:dependencies [[org.clojure/test.check "0.5.9"]]} } :cljsbuild { :builds [{ :source-paths ["src"] + :test-paths ["test"] :compiler { :output-to "target/cljsbuild-main.js"}}] }) diff --git a/test/clj/com/rpl/specter/core_test.clj b/test/com/rpl/specter/core_test.clj similarity index 100% rename from test/clj/com/rpl/specter/core_test.clj rename to test/com/rpl/specter/core_test.clj diff --git a/test/clj/com/rpl/specter/test_helpers.clj b/test/com/rpl/specter/test_helpers.clj similarity index 100% rename from test/clj/com/rpl/specter/test_helpers.clj rename to test/com/rpl/specter/test_helpers.clj