diff --git a/env/dev/clj/user.clj b/env/dev/clj/user.clj index e45e943..b318a86 100644 --- a/env/dev/clj/user.clj +++ b/env/dev/clj/user.clj @@ -1,13 +1,14 @@ (ns user (:require [mount.core :as mount] - [commiteth.figwheel :refer [start-fw stop-fw cljs]] - commiteth.core)) + [commiteth.figwheel :refer [start-fw stop-fw cljs]])) (defn start [] - (mount/start-without #'commiteth.core/repl-server)) + (require 'commiteth.core) + (mount/start-without (ns-resolve 'commiteth.core 'repl-server))) (defn stop [] - (mount/stop-except #'commiteth.core/repl-server)) + (require 'commiteth.core) + (mount/stop-except (ns-resolve 'commiteth.core 'repl-server))) (defn restart [] (stop) diff --git a/project.clj b/project.clj index 9a0ea35..e6af24a 100644 --- a/project.clj +++ b/project.clj @@ -116,10 +116,6 @@ :uberjar-name "commiteth.jar" :source-paths ["env/prod/clj"] :resource-paths ["env/prod/resources"]} - ;; :precomp profile allows to compile classes from commiteth.eth.contracts - ;; namespace before compiling clojure code. Otherwise ClassNotFound exception - ;; will be thrown - :precomp {:target-path "target/base+system+user+dev/" } :dev {:dependencies [[prone "1.1.4"] [ring/ring-mock "0.3.1"] [ring/ring-devel "1.6.2"] @@ -146,7 +142,7 @@ :optimizations :none :pretty-print true}}]} - :prep-tasks ["build-contracts" ["with-profile" "precomp" "javac"]] + :prep-tasks ["build-contracts" "javac"] :doo {:build "test"} :source-paths ["env/dev/clj" "test/clj"] :resource-paths ["env/dev/resources"]