Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shadow-cljs aliases
Browse files Browse the repository at this point in the history
kimo-k committed Mar 26, 2024
1 parent ab9e4ef commit f47c016
Showing 2 changed files with 42 additions and 44 deletions.
27 changes: 14 additions & 13 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{:paths ["src" "test"]
:deps {org.clojure/clojure {:mvn/version "1.10.3"}
org.clojure/clojurescript {:mvn/version "1.10.879"
:exclusions [com.google.javascript/closure-compiler-unshaded
org.clojure/google-closure-library
org.clojure/google-closure-library-third-party]}
thheller/shadow-cljs {:mvn/version "2.15.2"}
reagent/reagent {:mvn/version "1.1.0"}
org.clojure/core.async {:mvn/version "1.3.618"}
com.andrewmcveigh/cljs-time {:mvn/version "0.5.2"}
alandipert/storage-atom {:mvn/version "2.0.1"}
com.cognitect/transit-cljs {:mvn/version "0.8.264"}
clj-commons/secretary {:mvn/version "1.2.4"}
day8/shadow-git-inject {:mvn/version "0.0.5"}}}
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
org.clojure/clojurescript {:mvn/version "1.11.132"
:exclusions [com.google.javascript/closure-compiler-unshaded
org.clojure/google-closure-library
org.clojure/google-closure-library-third-party]}
thheller/shadow-cljs {:mvn/version "2.27.2"}
reagent/reagent {:mvn/version "1.1.0"}
org.clojure/core.async {:mvn/version "1.3.618"}
com.andrewmcveigh/cljs-time {:mvn/version "0.5.2"}
alandipert/storage-atom {:mvn/version "2.0.1"}
com.cognitect/transit-cljs {:mvn/version "0.8.264"}
clj-commons/secretary {:mvn/version "1.2.4"}
day8/shadow-git-inject {:mvn/version "0.0.5"}
hashp/hashp {:mvn/version "0.2.2"}}}
59 changes: 28 additions & 31 deletions shadow-cljs.edn
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
{:deps true
:nrepl {:port 7777}

:builds {:demo
{:target :browser
:modules {:demo {:init-fn re-demo.core/mount-demo}}
:build-hooks [(shadow-git-inject.core/hook)]
:compiler-options {:closure-defines {re-com.config/version :shadow-git-inject/version
;; For production builds of the demo app, set goog.DEBUG
;; to be true so that the debugging demo page works as expected.
goog.DEBUG true
re-com.config/force-include-args-desc? true}
;; For production builds of the demo app, keep the component name
;; symbols for display in validation error logging.
:pseudo-names true
:externs ["externs/detect-element-resize-externs.js"]}
:dev {:asset-path "/compiled_dev/demo"
:output-dir "run/resources/public/compiled_dev/demo"
:compiler-options
{:closure-defines {;; When re-com produces validation errors it tries to provide links
;; to source code. These links require that you provide the root URL
;; to the ClojureScript compiler output with source maps.
re-com.config/root-url-for-compiler-output
"http://localhost:3449/compiled_dev/demo/cljs-runtime/"}
:external-config {:devtools/config {:features-to-install [:formatters :hints]}}}}
:release {:output-dir "run/resources/public/compiled_prod/demo"
:compiler-options {:closure-defines {;; For production builds, such as the demo website, there is no source
;; code to link to in validation errors or component stacks, so we set
;; it to an empty string to cause links to not be displayed at all.
re-com.config/root-url-for-compiler-output ""}}}
:devtools {:http-port 3449
:http-root "run/resources/public"
:push-state/index "index_dev.html"
:preloads [hashp.core]}}
:builds {:demo {:target :browser
:modules {:demo {:init-fn re-demo.core/mount-demo}}
:build-hooks [(shadow-git-inject.core/hook)]
:compiler-options {:closure-defines {re-com.config/version :shadow-git-inject/version
;; For production builds of the demo app, set goog.DEBUG
;; to be true so that the debugging demo page works as expected.
goog.DEBUG true
re-com.config/force-include-args-desc? true}
;; For production builds of the demo app, keep the component name
;; symbols for display in validation error logging.
:pseudo-names true
:externs ["externs/detect-element-resize-externs.js"]}
:dev {:asset-path "/compiled_dev/demo"
:output-dir "run/resources/public/compiled_dev/demo"
:compiler-options {:closure-defines {;; When re-com produces validation errors it tries to provide links
;; to source code. These links require that you provide the root URL
;; to the ClojureScript compiler output with source maps.
re-com.config/root-url-for-compiler-output "http://localhost:3449/compiled_dev/demo/cljs-runtime/"}
:external-config {:devtools/config {:features-to-install [:formatters :hints]}}}}
:release {:output-dir "run/resources/public/compiled_prod/demo"
:compiler-options {:closure-defines {;; For production builds, such as the demo website, there is no source
;; code to link to in validation errors or component stacks, so we set
;; it to an empty string to cause links to not be displayed at all.
re-com.config/root-url-for-compiler-output ""}}}
:devtools {:http-port 3449
:http-root "run/resources/public"
:push-state/index "index_dev.html"
:preloads [hashp.core]}}

:browser-test {:target :browser-test
:ns-regexp "-test$"

0 comments on commit f47c016

Please sign in to comment.