Skip to content

Commit

Permalink
Merge pull request #12 from crisptrutski/cljx
Browse files Browse the repository at this point in the history
Portable core namespace
  • Loading branch information
crisptrutski committed Feb 19, 2015
2 parents 11d773b + ec8fed5 commit 446e1af
Show file tree
Hide file tree
Showing 10 changed files with 395 additions and 448 deletions.
29 changes: 19 additions & 10 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,41 @@
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[com.firebase/firebase-client-jvm "2.2.0"]

[cljsjs/firebase "2.1.2-1"]]
[cljsjs/firebase "2.1.2-1"]

[com.keminglabs/cljx "0.5.0" :exclusions [com.cemerick/piggieback]]
[com.cemerick/piggieback "0.1.5"]]
:deploy-repositories [["releases" :clojars]]

:plugins [[lein-cljsbuild "1.0.3" :scope "test"]
[com.cemerick/clojurescript.test "0.3.1" :scope "test"]]
:repl-options {:nrepl-middleware
[cljx.repl-middleware/wrap-cljx
cemerick.piggieback/wrap-cljs-repl]}

:repl-options {:nrepl-middleware [cljx.repl-middleware/wrap-cljx]}
:plugins [[lein-cljsbuild "1.0.3" :scope "test"]
[com.cemerick/clojurescript.test "0.3.1" :scope "test"]
[com.keminglabs/cljx "0.5.0" :exclusions [com.cemerick/piggieback]]
[com.cemerick/piggieback "0.1.5"]]

:jar-exclusions [#"\.cljx|\.swp|\.swo|\.DS_Store"]

:profiles {:dev {:dependencies [[om "0.7.3"]]
:plugins [[com.keminglabs/cljx "0.5.0"]]}}
:auto-clean false

:aliases {"test-all" ["do" "test," "cljsbuild" "once" "test"]
"auto-test" ["do" "clean," "cljsbuild" "auto" "test"]}
:profiles {:dev {:dependencies [[om "0.7.3"]]
:plugins [[com.keminglabs/cljx "0.5.0"]]
:aliases {"test-all" ["do" "cljx" "once,"
"test,"
"cljsbuild" "once" "test"]}}}

:aot [sunog.clojure.android-stub]

:cljsbuild {:builds [{:id "om-value-changes"
:source-paths ["examples/cljs/om-value-changes/src" "src"]
:source-paths ["examples/cljs/om-value-changes/src" "src" "target/classes"]
:compiler {:output-to "examples/cljs/om-value-changes/main.js"
:output-dir "examples/cljs/om-value-changes/out"
:source-map true
:optimizations :none }}
{:id "test"
:source-paths ["src", "test"]
:source-paths ["src", "test", "target/classes"]
:notify-command ["phantomjs" :cljs.test/runner "target/cljs/test.js"]
:compiler {:output-to "target/cljs/test.js"
:optimizations :whitespace
Expand Down
4 changes: 2 additions & 2 deletions src/sunog/async.cljs → src/sunog/async.cljx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns sunog.async
(:require [sunog.core :as p]
[cljs.core.async :refer [<! >! chan put! close!]])
(:require-macros [cljs.core.async.macros :refer [go go-loop]]))
#+clj [clojure.core.async :refer [<! >! chan put! close!]]
#+cljs [cljs.core.async :refer [<! >! chan put! close!]]))

(defn with-chan
"Call a function with a fresh channel, then return the channel"
Expand Down
178 changes: 0 additions & 178 deletions src/sunog/clojure/core.clj

This file was deleted.

Loading

0 comments on commit 446e1af

Please sign in to comment.