From 4acc93b9b82ed19bb8bb4823ed3618fbb3aa97a0 Mon Sep 17 00:00:00 2001 From: Bruce Hauman Date: Wed, 17 Dec 2014 23:08:11 -0500 Subject: [PATCH] fixing windows --- TODO.md | 13 +++++-------- sidecar/src/figwheel_sidecar/auto_builder.clj | 4 ---- sidecar/src/figwheel_sidecar/core.clj | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/TODO.md b/TODO.md index 72c05561..f7a82dc9 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,8 @@ * look at cljs.test plugin for client + - going to require an eval to do what I want + * ### look at repl integration + * add basic autobuilding loop to clojurescript-build * clean up example and template to have basic dev pattern @@ -11,14 +14,8 @@ * clean up parameter passing * look at subproject leiningen cljsbuild code and see whats needed -* dynamic env for figwheel.core +* dynamic *env* for figwheel.core * create seperate feature testing projects -* html change causes refresh +* html change to cause refresh * clean from browser is a big win - ##### completed -* resource paths? better way to handle it eh? -* shouldn't reload everything on clj file changes now -* seperate project / namespace for client -* reload-non-macro-clj-files flag -* cljs.closure.api diff --git a/sidecar/src/figwheel_sidecar/auto_builder.clj b/sidecar/src/figwheel_sidecar/auto_builder.clj index abed9abf..c2b618d0 100644 --- a/sidecar/src/figwheel_sidecar/auto_builder.clj +++ b/sidecar/src/figwheel_sidecar/auto_builder.clj @@ -46,10 +46,6 @@ compiler-env (cljs.env/default-compiler-env build-options)] (reset! server-kill-switch (:http-server figwheel-state')) - #_(p/pprint src-dirs) - #_(p/pprint build-options) - #_(p/pprint figwheel-options) - (loop [dependency-mtimes {}] (let [new-mtimes (get-dependency-mtimes src-dirs build-options)] (when (not= dependency-mtimes new-mtimes) diff --git a/sidecar/src/figwheel_sidecar/core.clj b/sidecar/src/figwheel_sidecar/core.clj index bd9acc9c..c10e0b08 100644 --- a/sidecar/src/figwheel_sidecar/core.clj +++ b/sidecar/src/figwheel_sidecar/core.clj @@ -194,7 +194,7 @@ This is a path that a client can request. A caveat is that only works on compiled javascript namespaces." [{:keys [output-dir] :as state} ns] - (let [path (.getPath (bapi/cljs-target-file-from-ns output-dir ns))] + (let [path (norm-path (.getPath (bapi/cljs-target-file-from-ns output-dir ns)))] (remove-resource-path state path))) (defn make-serve-from-display [{:keys [http-server-root] :as opts}]