Skip to content

Commit 1e9f92e

Browse files
committed
Upgrade certain deps and downgrade ShadowCLJS to 2.14.4
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
1 parent fc29093 commit 1e9f92e

File tree

7 files changed

+6335
-81
lines changed

7 files changed

+6335
-81
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.18.0
1+
v16.16.0

README.org

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,19 +217,12 @@ steps 2 and 3.
217217
** 1. Install runtimes and application dependencies
218218

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

229222
#+begin_example sh
230223
cd panda-streamer
231224
nvm use # to use the specific Netlify version
232-
npm install
225+
npm ci
233226
#+end_example
234227

235228
** 2. Install a local blockchain

deps.edn

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,45 @@
11
{:paths ["src/main/clojure"]
22

33
;; External dependencies
4-
:deps {org.clojure/clojure {:mvn/version "1.10.3"}}
4+
:deps {org.clojure/clojure {:mvn/version "1.10.3"}
5+
thheller/shadow-cljs {:mvn/version "2.14.4"}
6+
re-frame/re-frame {:mvn/version"1.2.0"}
57

6-
:aliases
7-
{:cljs
8-
{:extra-deps {thheller/shadow-cljs {:mvn/version "2.15.1"}
9-
re-frame/re-frame {:mvn/version"1.2.0"}
10-
11-
;; A promise library.
12-
funcool/promesa {:mvn/version "6.0.2"}
8+
;; A promise library.
9+
funcool/promesa {:mvn/version "6.0.2"}
1310

14-
;; Data-driven schemas.
15-
metosin/malli {:git/url "https://github.com/metosin/malli.git"
16-
:sha "aa979c1fe0df622f6962720d14578d88bc543546"}
11+
;; Data-driven schemas.
12+
metosin/malli {:git/url "https://github.com/metosin/malli.git"
13+
:sha "aa979c1fe0df622f6962720d14578d88bc543546"}
1714

18-
;; Function instrumentation using Malli schemas.
19-
com.crypticbutter/snoop {:mvn/version "21-166-alpha2"}
15+
;; Function instrumentation using Malli schemas.
16+
com.crypticbutter/snoop {:mvn/version "21-353-alpha"}
2017

21-
;; Force re-frame to use the latest Reagent version. The latest
22-
;; release also removes lots of compiler warnings and support
23-
;; React 17.0.2.
24-
reagent/reagent {:mvn/version "1.1.0"}
18+
;; Force re-frame to use the latest Reagent version. The latest
19+
;; release also removes lots of compiler warnings and support
20+
;; React 17.0.2.
21+
reagent/reagent {:mvn/version "1.1.0"}
2522

26-
;; Compose Tailwind classes using data.
27-
rgm/tailwind-hiccup {:mvn/version "0.2.0"}
23+
;; Compose Tailwind classes using data.
24+
rgm/tailwind-hiccup {:mvn/version "0.2.0"}
2825

29-
;; Client-side routing.
30-
bidi/bidi {:mvn/version "2.1.6"}
31-
kibu/pushy {:mvn/version "0.3.8"}
26+
;; Client-side routing.
27+
bidi/bidi {:mvn/version "2.1.6"}
28+
kibu/pushy {:mvn/version "0.3.8"}
3229

33-
;; Data browser/inspector (only used for development).
34-
djblue/portal {:mvn/version "0.12.0"}
30+
;; Data browser/inspector (only used for development).
31+
djblue/portal {:mvn/version "0.12.0"}
3532

36-
;; An effect handler for AJAX calls.
37-
day8.re-frame/http-fx {:mvn/version "0.2.3"}
33+
;; An effect handler for AJAX calls.
34+
day8.re-frame/http-fx {:mvn/version "0.2.3"}
3835

39-
;; A graph based visualization tool for re-frame event chains.
40-
org.clojars.ertucetin/re-frame-flow {:mvn/version "0.1.4"}
41-
day8.re-frame/tracing {:mvn/version "0.6.2"}
42-
day8.re-frame/re-frame-10x {:mvn/version "1.1.3"}}}
36+
;; A graph based visualization tool for re-frame event chains.
37+
org.clojars.ertucetin/re-frame-flow {:mvn/version "0.1.4"}
38+
day8.re-frame/tracing {:mvn/version "0.6.2"}
39+
day8.re-frame/re-frame-10x {:mvn/version "1.1.3"}}
4340

44-
:lint
41+
:aliases
42+
{:lint
4543
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2021.06.18"}}
4644
:main-opts ["-m" "clj-kondo.main" "--lint" "src"]}
4745

@@ -72,8 +70,7 @@
7270
{:replace-paths []
7371
:replace-deps {com.github.liquidz/antq {:mvn/version "0.13.0"}
7472
org.slf4j/slf4j-nop {:mvn/version "1.7.31"}}
75-
:main-opts ["-m" "antq.core"]}
76-
}
73+
:main-opts ["-m" "antq.core"]}}
7774

7875
;; Provider attributes
7976
:mvn/repos {"central" {:url "https://repo1.maven.org/maven2/"}

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
publish = "build/public/"
99

1010
# Default build command.
11-
command = "npm install && npm run release"
11+
command = "npm ci && npm run release"
1212

1313
# The following redirect is intended for use with most SPAs that handle routing
1414
# internally.

0 commit comments

Comments
 (0)