From 5603e9df9f80df58c740df80137680d9c6c9433c Mon Sep 17 00:00:00 2001 From: Mike Blume Date: Sat, 13 Jun 2015 11:30:21 -0700 Subject: [PATCH] Add ClojureScript build, move files to cljc. ClojureScript build fails. --- project.clj | 6 +++++- src/honeysql/{core.clj => core.cljc} | 0 src/honeysql/{format.clj => format.cljc} | 0 src/honeysql/{helpers.clj => helpers.cljc} | 2 +- src/honeysql/{types.clj => types.cljc} | 0 test/honeysql/{core_test.clj => core_test.cljc} | 0 test/honeysql/{format_test.clj => format_test.cljc} | 0 7 files changed, 6 insertions(+), 2 deletions(-) rename src/honeysql/{core.clj => core.cljc} (100%) rename src/honeysql/{format.clj => format.cljc} (100%) rename src/honeysql/{helpers.clj => helpers.cljc} (99%) rename src/honeysql/{types.clj => types.cljc} (100%) rename test/honeysql/{core_test.clj => core_test.cljc} (100%) rename test/honeysql/{format_test.clj => format_test.cljc} (100%) diff --git a/project.clj b/project.clj index 2019952..55cc7d7 100644 --- a/project.clj +++ b/project.clj @@ -5,4 +5,8 @@ :url "https://github.com/jkk/honeysql" :scm {:name "git" :url "https://github.com/jkk/honeysql"} - :dependencies [[org.clojure/clojure "1.8.0"]]) + :dependencies [[org.clojure/clojure "1.8.0"]] + :profiles {:dev {:dependencies [[org.clojure/clojure "1.8.0"] + [org.clojure/clojurescript "1.9.89"]] + :cljsbuild {:builds [{:source-paths ["src" "test"]}]} + :plugins [[lein-cljsbuild "1.0.6"]]}}) diff --git a/src/honeysql/core.clj b/src/honeysql/core.cljc similarity index 100% rename from src/honeysql/core.clj rename to src/honeysql/core.cljc diff --git a/src/honeysql/format.clj b/src/honeysql/format.cljc similarity index 100% rename from src/honeysql/format.clj rename to src/honeysql/format.cljc diff --git a/src/honeysql/helpers.clj b/src/honeysql/helpers.cljc similarity index 99% rename from src/honeysql/helpers.clj rename to src/honeysql/helpers.cljc index 69dde96..51f11e5 100644 --- a/src/honeysql/helpers.clj +++ b/src/honeysql/helpers.cljc @@ -233,7 +233,7 @@ (defn delete-from ([table] (delete-from nil table)) ([m table] (build-clause :delete-from m table))) - + (defmethod build-clause :with [_ m ctes] (assoc m :with ctes)) diff --git a/src/honeysql/types.clj b/src/honeysql/types.cljc similarity index 100% rename from src/honeysql/types.clj rename to src/honeysql/types.cljc diff --git a/test/honeysql/core_test.clj b/test/honeysql/core_test.cljc similarity index 100% rename from test/honeysql/core_test.clj rename to test/honeysql/core_test.cljc diff --git a/test/honeysql/format_test.clj b/test/honeysql/format_test.cljc similarity index 100% rename from test/honeysql/format_test.clj rename to test/honeysql/format_test.cljc