Remove dependency on Tufte. Fixes #109.

This commit is contained in:
Richard Newman 2016-11-15 17:46:38 -08:00
parent 8432e89b97
commit 8ad434574e
5 changed files with 21 additions and 7 deletions

View file

@ -8,7 +8,7 @@
[org.clojure/core.async "0.2.385"]
[datascript "0.15.4"]
[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"]]
;; The browser will never require from the .JAR anyway.

View file

@ -19,8 +19,8 @@
[datomish.schema :as ds]
[datomish.sqlite :as s]
[datomish.sqlite-schema :as sqlite-schema]
[taoensso.tufte :as tufte
#?(:cljs :refer-macros :clj :refer) [defnp p profiled profile]]
[datomish.tufte-stub :as tufte
#?(:cljs :refer-macros :clj :refer) [p]]
#?@(:clj [[datomish.pair-chan :refer [go-pair <?]]
[clojure.core.async :as a :refer [chan go <! >!]]])
#?@(:cljs [[datomish.pair-chan]

View file

@ -22,8 +22,8 @@
[datomish.sqlite-schema :as sqlite-schema]
[datomish.transact.bootstrap :as bootstrap]
[datomish.transact.explode :as explode]
[taoensso.tufte :as tufte
#?(:cljs :refer-macros :clj :refer) [defnp p profiled profile]]
[datomish.tufte-stub :as tufte
#?(:cljs :refer-macros :clj :refer) [p]]
#?@(:clj [[datomish.pair-chan :refer [go-pair <?]]
[clojure.core.async :as a :refer [chan go go-loop <! >!]]])
#?@(:cljs [[datomish.pair-chan]

View 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))

View file

@ -9,8 +9,8 @@
[datomish.node-tempfile-macros :refer [with-tempfile]]
[cljs.core.async.macros :as a :refer [go]]))
(:require
[taoensso.tufte :as tufte
#?(:cljs :refer-macros :clj :refer) [defnp p profiled profile]]
[datomish.tufte-stub :as tufte
#?(:cljs :refer-macros :clj :refer) [p profile]]
[datomish.api :as d]
[datomish.places.import :as pi]
[datomish.util :as util #?(:cljs :refer-macros :clj :refer) [raise cond-let]]