Skip to content

Commit

Permalink
Upgrade certain deps and downgrade ShadowCLJS to 2.14.4
Browse files Browse the repository at this point in the history
Netlify does not cooperate, and it seems ShadowCLJS 2.14.4 is better supported,
according to issue[1] and BountySource[2].

[1] netlify/build-image#484
[2] https://app.bountysource.com/issues/99499125-broken-builds-on-netlify
  • Loading branch information
ilmotta committed Jul 21, 2022
1 parent fc29093 commit 1e9f92e
Show file tree
Hide file tree
Showing 7 changed files with 6,335 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.18.0
v16.16.0
11 changes: 2 additions & 9 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,12 @@ steps 2 and 3.
** 1. Install runtimes and application dependencies

You'll need to install Clojure (JVM) in order to install [[https://clojurescript.org/guides/quick-start][ClojureScript]] and
you'll need Node. Netlify uses a specific Node version =v12.18.0= and the
shipped NPM =v6.14.4= (as of Jun/2021). If you're going to simply run the app
locally you'll be fine with the latest LTS version 14.x, but if you want to
manage the project dependencies it's paramount you use the same Netlify
versions. I've faced hard to debug issues from the non-backwards compatible way
=npm= handles the =package-lock.json= file. The Netlify build would constantly
fail because of that. Ideally, the project should offer [[https://guix.gnu.org/][GNU/Guix]] or Docker
scripts to help you run this project in an isolated environment.
you'll need Node v16.16.0 (latest LTS as of 2022-Jul).

#+begin_example sh
cd panda-streamer
nvm use # to use the specific Netlify version
npm install
npm ci
#+end_example

** 2. Install a local blockchain
Expand Down
63 changes: 30 additions & 33 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
{:paths ["src/main/clojure"]

;; External dependencies
:deps {org.clojure/clojure {:mvn/version "1.10.3"}}
:deps {org.clojure/clojure {:mvn/version "1.10.3"}
thheller/shadow-cljs {:mvn/version "2.14.4"}
re-frame/re-frame {:mvn/version"1.2.0"}

:aliases
{:cljs
{:extra-deps {thheller/shadow-cljs {:mvn/version "2.15.1"}
re-frame/re-frame {:mvn/version"1.2.0"}

;; A promise library.
funcool/promesa {:mvn/version "6.0.2"}
;; A promise library.
funcool/promesa {:mvn/version "6.0.2"}

;; Data-driven schemas.
metosin/malli {:git/url "https://github.com/metosin/malli.git"
:sha "aa979c1fe0df622f6962720d14578d88bc543546"}
;; Data-driven schemas.
metosin/malli {:git/url "https://github.com/metosin/malli.git"
:sha "aa979c1fe0df622f6962720d14578d88bc543546"}

;; Function instrumentation using Malli schemas.
com.crypticbutter/snoop {:mvn/version "21-166-alpha2"}
;; Function instrumentation using Malli schemas.
com.crypticbutter/snoop {:mvn/version "21-353-alpha"}

;; Force re-frame to use the latest Reagent version. The latest
;; release also removes lots of compiler warnings and support
;; React 17.0.2.
reagent/reagent {:mvn/version "1.1.0"}
;; Force re-frame to use the latest Reagent version. The latest
;; release also removes lots of compiler warnings and support
;; React 17.0.2.
reagent/reagent {:mvn/version "1.1.0"}

;; Compose Tailwind classes using data.
rgm/tailwind-hiccup {:mvn/version "0.2.0"}
;; Compose Tailwind classes using data.
rgm/tailwind-hiccup {:mvn/version "0.2.0"}

;; Client-side routing.
bidi/bidi {:mvn/version "2.1.6"}
kibu/pushy {:mvn/version "0.3.8"}
;; Client-side routing.
bidi/bidi {:mvn/version "2.1.6"}
kibu/pushy {:mvn/version "0.3.8"}

;; Data browser/inspector (only used for development).
djblue/portal {:mvn/version "0.12.0"}
;; Data browser/inspector (only used for development).
djblue/portal {:mvn/version "0.12.0"}

;; An effect handler for AJAX calls.
day8.re-frame/http-fx {:mvn/version "0.2.3"}
;; An effect handler for AJAX calls.
day8.re-frame/http-fx {:mvn/version "0.2.3"}

;; A graph based visualization tool for re-frame event chains.
org.clojars.ertucetin/re-frame-flow {:mvn/version "0.1.4"}
day8.re-frame/tracing {:mvn/version "0.6.2"}
day8.re-frame/re-frame-10x {:mvn/version "1.1.3"}}}
;; A graph based visualization tool for re-frame event chains.
org.clojars.ertucetin/re-frame-flow {:mvn/version "0.1.4"}
day8.re-frame/tracing {:mvn/version "0.6.2"}
day8.re-frame/re-frame-10x {:mvn/version "1.1.3"}}

:lint
:aliases
{:lint
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2021.06.18"}}
:main-opts ["-m" "clj-kondo.main" "--lint" "src"]}

Expand Down Expand Up @@ -72,8 +70,7 @@
{:replace-paths []
:replace-deps {com.github.liquidz/antq {:mvn/version "0.13.0"}
org.slf4j/slf4j-nop {:mvn/version "1.7.31"}}
:main-opts ["-m" "antq.core"]}
}
:main-opts ["-m" "antq.core"]}}

;; Provider attributes
:mvn/repos {"central" {:url "https://repo1.maven.org/maven2/"}
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
publish = "build/public/"

# Default build command.
command = "npm install && npm run release"
command = "npm ci && npm run release"

# The following redirect is intended for use with most SPAs that handle routing
# internally.
Expand Down
Loading

0 comments on commit 1e9f92e

Please sign in to comment.