Remove dependency on Tufte. Fixes #109.
This commit is contained in:
parent
8432e89b97
commit
8ad434574e
5 changed files with 21 additions and 7 deletions
|
@ -8,7 +8,7 @@
|
||||||
[org.clojure/core.async "0.2.385"]
|
[org.clojure/core.async "0.2.385"]
|
||||||
[datascript "0.15.4"]
|
[datascript "0.15.4"]
|
||||||
[org.clojars.rnewman/honeysql "0.8.2"]
|
[org.clojars.rnewman/honeysql "0.8.2"]
|
||||||
[com.taoensso/tufte "1.0.2"]
|
;[com.taoensso/tufte "1.0.2"]
|
||||||
[jamesmacaulay/cljs-promises "0.1.0"]]
|
[jamesmacaulay/cljs-promises "0.1.0"]]
|
||||||
|
|
||||||
;; The browser will never require from the .JAR anyway.
|
;; The browser will never require from the .JAR anyway.
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
[datomish.schema :as ds]
|
[datomish.schema :as ds]
|
||||||
[datomish.sqlite :as s]
|
[datomish.sqlite :as s]
|
||||||
[datomish.sqlite-schema :as sqlite-schema]
|
[datomish.sqlite-schema :as sqlite-schema]
|
||||||
[taoensso.tufte :as tufte
|
[datomish.tufte-stub :as tufte
|
||||||
#?(:cljs :refer-macros :clj :refer) [defnp p profiled profile]]
|
#?(:cljs :refer-macros :clj :refer) [p]]
|
||||||
#?@(:clj [[datomish.pair-chan :refer [go-pair <?]]
|
#?@(:clj [[datomish.pair-chan :refer [go-pair <?]]
|
||||||
[clojure.core.async :as a :refer [chan go <! >!]]])
|
[clojure.core.async :as a :refer [chan go <! >!]]])
|
||||||
#?@(:cljs [[datomish.pair-chan]
|
#?@(:cljs [[datomish.pair-chan]
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
[datomish.sqlite-schema :as sqlite-schema]
|
[datomish.sqlite-schema :as sqlite-schema]
|
||||||
[datomish.transact.bootstrap :as bootstrap]
|
[datomish.transact.bootstrap :as bootstrap]
|
||||||
[datomish.transact.explode :as explode]
|
[datomish.transact.explode :as explode]
|
||||||
[taoensso.tufte :as tufte
|
[datomish.tufte-stub :as tufte
|
||||||
#?(:cljs :refer-macros :clj :refer) [defnp p profiled profile]]
|
#?(:cljs :refer-macros :clj :refer) [p]]
|
||||||
#?@(:clj [[datomish.pair-chan :refer [go-pair <?]]
|
#?@(:clj [[datomish.pair-chan :refer [go-pair <?]]
|
||||||
[clojure.core.async :as a :refer [chan go go-loop <! >!]]])
|
[clojure.core.async :as a :refer [chan go go-loop <! >!]]])
|
||||||
#?@(:cljs [[datomish.pair-chan]
|
#?@(:cljs [[datomish.pair-chan]
|
||||||
|
|
14
src/common/datomish/tufte_stub.cljc
Normal file
14
src/common/datomish/tufte_stub.cljc
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
|
(ns datomish.tufte-stub)
|
||||||
|
|
||||||
|
;;; The real version of Tufte pulls in cljs.test, which pulls in
|
||||||
|
;;; pprint, which breaks the build in Firefox.
|
||||||
|
|
||||||
|
(defmacro p [name & forms]
|
||||||
|
`(do ~@forms))
|
||||||
|
|
||||||
|
(defmacro profile [options & forms]
|
||||||
|
`(do ~@forms))
|
|
@ -9,8 +9,8 @@
|
||||||
[datomish.node-tempfile-macros :refer [with-tempfile]]
|
[datomish.node-tempfile-macros :refer [with-tempfile]]
|
||||||
[cljs.core.async.macros :as a :refer [go]]))
|
[cljs.core.async.macros :as a :refer [go]]))
|
||||||
(:require
|
(:require
|
||||||
[taoensso.tufte :as tufte
|
[datomish.tufte-stub :as tufte
|
||||||
#?(:cljs :refer-macros :clj :refer) [defnp p profiled profile]]
|
#?(:cljs :refer-macros :clj :refer) [p profile]]
|
||||||
[datomish.api :as d]
|
[datomish.api :as d]
|
||||||
[datomish.places.import :as pi]
|
[datomish.places.import :as pi]
|
||||||
[datomish.util :as util #?(:cljs :refer-macros :clj :refer) [raise cond-let]]
|
[datomish.util :as util #?(:cljs :refer-macros :clj :refer) [raise cond-let]]
|
||||||
|
|
Loading…
Reference in a new issue