File tree 6 files changed +797
-9
lines changed
6 files changed +797
-9
lines changed Original file line number Diff line number Diff line change @@ -145,14 +145,14 @@ jobs:
145
145
- name : 📓 Build Clerk Book
146
146
run : |
147
147
cp notebooks/editor.clj editor.clj
148
- clojure -J-Dclojure.main.report=stderr -X:demo:nextjournal/clerk :git/sha '"${{ github.sha }}"' :git/url '"https://github.com/nextjournal/clerk"' :paths '["book.clj" "CHANGELOG.md" "editor.clj"]'
148
+ clojure -J-Dclojure.main.report=stderr -X:demo:sci: nextjournal/clerk :git/sha '"${{ github.sha }}"' :git/url '"https://github.com/nextjournal/clerk"' :paths '["book.clj" "CHANGELOG.md" "editor.clj"]'
149
149
150
150
- name : 📠 Copy book to bucket under SHA
151
151
run : |
152
152
gsutil cp -r public/build gs://nextjournal-snapshots/clerk/book/${{ github.sha }}
153
153
154
154
- name : 🏗 Build Clerk Static App with default Notebooks
155
- run : clojure -J-Dclojure.main.report=stderr -X:demo:nextjournal/clerk :package :single-file
155
+ run : clojure -J-Dclojure.main.report=stderr -X:demo:sci: nextjournal/clerk :package :single-file
156
156
157
157
- name : 📠 Copy static build to bucket under SHA
158
158
run : |
Original file line number Diff line number Diff line change 83
83
org.clojure/data.csv {:mvn/version " 1.0.0" }
84
84
hickory/hickory {:mvn/version " 0.7.1" }
85
85
org.mentat/emmy {:mvn/version " 0.32.0"
86
- :exclusions [org.babashka/sci]}
87
- ; ; emmy needs SCI, here we use the same version as in render:
88
- org.babashka/sci {:git/url " https://github.com/babashka/sci"
89
- :git/sha " c556f4474303c61da72e7a07eef496dcbf66a56e" }
86
+ :exclusions [org.babashka/sci]
87
+ ; ; use :sci alias in addition to this
88
+ }
90
89
io.github.nextjournal/clerk-slideshow {:git/sha " 11a83fea564da04b9d17734f2031a4921d917893" }}}
91
90
92
91
:nextjournal/garden {:exec-fn nextjournal.clerk/serve!
Original file line number Diff line number Diff line change
1
+ (ns sci-import-test
2
+ (:require [nextjournal.clerk :as clerk]
3
+ [clojure.core :as b]))
4
+
5
+ (clerk/with-viewer
6
+ {:render-fn
7
+ '(fn [_]
8
+ (nextjournal.clerk.render/render-promise
9
+ (->
10
+ (
js/import " https:/esm.sh/[email protected] /index.mjs" )
11
+ (.then
12
+ (fn [lib]
13
+ (nextjournal.clerk/html
14
+ [:pre (lib.formatRelative (lib.subDays (js/Date. ) 2 ) (js/Date. ))]))))))}
15
+ nil )
Original file line number Diff line number Diff line change 36
36
"w3c-keyname" : " 2.2.4"
37
37
},
38
38
"devDependencies" : {
39
- "process" : " ^0.11.10"
39
+ "process" : " ^0.11.10" ,
40
+ "shadow-cljs" : " ^2.28.20"
40
41
}
41
42
}
Original file line number Diff line number Diff line change 2
2
:deps {applied-science/js-interop {:mvn/version " 0.3.3" }
3
3
binaryage/devtools {:mvn/version " 1.0.3" }
4
4
cider/cider-nrepl {:mvn/version " 0.28.3" }
5
- org.babashka/sci {:git/url " https://github.com/babashka/sci"
6
- :git/sha " c556f4474303c61da72e7a07eef496dcbf66a56e" }
5
+ org.babashka/sci #_{:local/root " ../../babashka/sci" }
6
+ {:git/url " https://github.com/babashka/sci"
7
+ :git/sha " 1e15f0f6a129ef7512351efc65f7475209d8cc4c" }
7
8
org.clojure/clojurescript {:mvn/version " 1.11.132" }
8
9
io.github.babashka/sci.nrepl {:mvn/version " 0.0.2" }
9
10
reagent/reagent {:mvn/version " 1.2.0" }
You can’t perform that action at this time.
0 commit comments