-
-
Save YurySolovyov/77d8acc85a2ae4aee8b75f2ccb01416c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set-env! | |
:source-paths #{"src/eion"} | |
:resource-paths #{"resources"} | |
:dependencies '[[org.clojure/clojurescript "1.9.229"] | |
[org.clojure/tools.nrepl "0.2.12" :scope "test"] | |
[com.cemerick/piggieback "0.2.1" :scope "test"] | |
[weasel "0.7.0" :scope "test"] | |
[org.clojure/core.async "0.2.391"] | |
[adzerk/boot-cljs "1.7.228-1" :scope "test"] | |
[adzerk/boot-cljs-repl "0.3.3" :scope "test"] | |
[adzerk/boot-reload "0.4.12" :scope "test"]]) | |
(require | |
'[adzerk.boot-cljs :refer [cljs]] | |
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]] | |
'[adzerk.boot-reload :refer [reload]]) | |
(deftask prod-build [] | |
(comp (cljs :ids #{"main"} | |
:optimizations :simple) | |
(cljs :ids #{"renderer"} | |
:optimizations :advanced))) | |
(deftask dev-build [] | |
(comp ;; Inject REPL and reloading code into renderer build ======= | |
(cljs-repl :ids #{"eion.renderer"}) | |
; (reload :ids #{"eion.renderer"} | |
; :ws-host "localhost" | |
; :on-jsload 'eion.renderer.core/init) | |
; Compile renderer ========================================= | |
(cljs :ids #{"eion.renderer"}) | |
;; Compile JS for main process ============================== | |
;; path.resolve(".") which is used in CLJS's node shim | |
;; returns the directory `electron` was invoked in and | |
;; not the directory our main.js file is in. | |
;; Because of this we need to override the compilers `:asset-path option` | |
;; See http://dev.clojure.org/jira/browse/CLJS-1444 for details. | |
(cljs :ids #{"eion.main"} | |
:compiler-options {:asset-path "target/main.out"}) | |
(target))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adzerk.boot_cljs.util.proxy$clojure.lang.ExceptionInfo$ff19274a: ERROR: No such namespace: eion.renderer.out.adzerk.boot-reload.connection, could not locate eion/renderer/out/adzerk/boot_reload/connection.cljs, eion/renderer/out/adzerk/boot_reload/connection.cljc, or Closure namespace "eion.renderer.out.adzerk.boot-reload.connection" in file /home/yury/.boot/cache/tmp/media/yury/MYMEDIA/Projects/eion-clojurescript-boot/f16/-2qayf3/boot/cljs/main8482.cljs at file boot/cljs/main8482.cljs | |
data: {:tag :cljs/analysis-error, | |
:file "boot/cljs/main8482.cljs", | |
:from :boot-cljs} | |
adzerk.boot_cljs.util.proxy$clojure.lang.ExceptionInfo$ff19274a: No such namespace: eion.renderer.out.adzerk.boot-reload.connection, could not locate eion/renderer/out/adzerk/boot_reload/connection.cljs, eion/renderer/out/adzerk/boot_reload/connection.cljc, or Closure namespace "eion.renderer.out.adzerk.boot-reload.connection" in file /home/yury/.boot/cache/tmp/media/yury/MYMEDIA/Projects/eion-clojurescript-boot/f16/-2qayf3/boot/cljs/main8482.cljs | |
data: {:tag :cljs/analysis-error} | |
clojure.core/ex-info/invokeStatic core.clj: 4617 | |
clojure.core/ex-info core.clj: 4617 | |
cljs.analyzer$error.invokeStatic analyzer.cljc: 620 | |
cljs.analyzer$error.invoke analyzer.cljc: 616 | |
cljs.analyzer$error.invokeStatic analyzer.cljc: 618 | |
cljs.analyzer$error.invoke analyzer.cljc: 616 | |
cljs.analyzer$analyze_deps.invokeStatic analyzer.cljc: 1747 | |
cljs.analyzer$analyze_deps.invoke analyzer.cljc: 1726 | |
cljs.analyzer$ns_side_effects.invokeStatic analyzer.cljc: 2811 | |
cljs.analyzer$ns_side_effects.invoke analyzer.cljc: 2806 | |
cljs.analyzer$analyze_STAR_$fn__2240.invoke analyzer.cljc: 2901 | |
... | |
clojure.core/reduce/invokeStatic core.clj: 6544 | |
clojure.core/reduce core.clj: 6527 | |
cljs.analyzer$analyze_STAR_.invokeStatic analyzer.cljc: 2901 | |
cljs.analyzer$analyze_STAR_.invoke analyzer.cljc: 2891 | |
cljs.analyzer$analyze.invokeStatic analyzer.cljc: 2916 | |
cljs.analyzer$analyze.invoke analyzer.cljc: 2903 | |
cljs.compiler$emit_source.invokeStatic compiler.cljc: 1252 | |
cljs.compiler$emit_source.invoke compiler.cljc: 1232 | |
cljs.compiler$compile_file_STAR_$fn__3543.invoke compiler.cljc: 1304 | |
cljs.compiler$with_core_cljs.invokeStatic compiler.cljc: 1154 | |
cljs.compiler$with_core_cljs.invoke compiler.cljc: 1145 | |
cljs.compiler$compile_file_STAR_.invokeStatic compiler.cljc: 1293 | |
cljs.compiler$compile_file_STAR_.invoke compiler.cljc: 1289 | |
cljs.compiler$compile_file$fn__3566.invoke compiler.cljc: 1374 | |
cljs.compiler$compile_file.invokeStatic compiler.cljc: 1352 | |
cljs.compiler$compile_file.invoke compiler.cljc: 1332 | |
cljs.closure/compile-file/invokeStatic closure.clj: 474 | |
cljs.closure/compile-file closure.clj: 465 | |
cljs.closure/eval5313/fn closure.clj: 541 | |
cljs.closure/eval5249/fn/G closure.clj: 431 | |
cljs.closure/compile-sources/iter/fn closure.clj: 871 | |
... | |
clojure.core/next/invokeStatic core.clj: 64 | |
clojure.core/dorun/invokeStatic core.clj: 3033 | |
clojure.core/doall/invokeStatic core.clj: 3039 | |
clojure.core/doall core.clj: 3039 | |
cljs.closure/compile-sources/invokeStatic closure.clj: 867 | |
cljs.closure/compile-sources closure.clj: 856 | |
cljs.closure/build/invokeStatic closure.clj: 1988 | |
cljs.closure/build closure.clj: 1927 | |
cljs.build.api/build/invokeStatic api.clj: 199 | |
cljs.build.api/build api.clj: 187 | |
adzerk.boot-cljs.impl/compile-cljs/invokeStatic impl.clj: 89 | |
adzerk.boot-cljs.impl/compile-cljs impl.clj: 66 | |
... | |
clojure.core/apply/invokeStatic core.clj: 646 | |
clojure.core/apply core.clj: 641 | |
boot.pod/eval-fn-call pod.clj: 328 | |
boot.pod/call-in* pod.clj: 379 | |
... | |
boot.pod/call-in* pod.clj: 382 | |
adzerk.boot-cljs/compile/invokeStatic boot_cljs.clj: 71 | |
adzerk.boot-cljs/compile boot_cljs.clj: 59 | |
adzerk.boot-cljs/compile-1/fn boot_cljs.clj: 126 | |
clojure.core/binding-conveyor-fn/fn core.clj: 1938 | |
... | |
Elapsed time: 19.438 sec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:require [eion.main.core] | |
:init-fns [eion.main.core/init] | |
:compiler-options {:target :nodejs}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:require [eion.renderer.core] | |
:init-fns [eion.renderer.core/init]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment