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