Skip to content

Commit e0ae539

Browse files
committed
upgrade deps; change after-load syntax
1 parent 5e2c93f commit e0ae539

File tree

6 files changed

+65
-57
lines changed

6 files changed

+65
-57
lines changed

calcit.cirru

+2
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,7 @@
21562156
:data $ {}
21572157
|T $ {} (:type :leaf) (:id |SkipXq8geAB-) (:text |println) (:by |root) (:at 1500541010211)
21582158
|j $ {} (:type :leaf) (:id |Hyh679IegASZ) (:text "|\"Code updated.") (:by |root) (:at 1500541010211)
2159+
|b $ {} (:type :leaf) (:by |B1y7Rc-Zz) (:at 1596973318897) (:text |^:dev/after-load) (:id |JTfRJVKH2y)
21592160
|mount-target $ {} (:type :expr) (:id |BkpTXqIleASW) (:by nil) (:at 1500541010211)
21602161
:data $ {}
21612162
|T $ {} (:type :leaf) (:id |HJAa7qIllRrW) (:text |def) (:by |root) (:at 1500541010211)
@@ -4145,6 +4146,7 @@
41454146
:data $ {}
41464147
|T $ {} (:type :leaf) (:by |B1y7Rc-Zz) (:at 1593255076725) (:text |clear-twig-caches!) (:id |BTUqyb3x4D)
41474148
:id |mJ_7cI3g2
4149+
|b $ {} (:type :leaf) (:by |B1y7Rc-Zz) (:at 1596973330918) (:text |^:dev/after-load) (:id |YeN8edjDY)
41484150
|*reader-reel $ {} (:type :expr) (:id |SkrNzg8-eAHb) (:by nil) (:at 1500541255553)
41494151
:data $ {}
41504152
|T $ {} (:type :leaf) (:id |HkU4MeUWgRrb) (:text |defonce) (:by |root) (:at 1500541255553)

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
"author": "jiyinyiyong",
2020
"license": "MIT",
2121
"dependencies": {
22-
"md5": "^2.2.1",
22+
"md5": "^2.3.0",
2323
"randomcolor": "^0.6.2",
2424
"shortid": "^2.2.15",
2525
"ws": "^7.3.1"
2626
},
2727
"devDependencies": {
2828
"feather-icons": "^4.28.0",
2929
"node-notifier": "^7.0.2",
30-
"shadow-cljs": "^2.10.17",
30+
"shadow-cljs": "^2.10.21",
3131
"source-map-support": "^0.5.19",
3232
"url-parse": "^1.4.7"
3333
}

shadow-cljs.edn

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
[mvc-works/hsl "0.1.2"]
66
[mvc-works/shell-page "0.1.15"]
77
[mvc-works/ws-edn "0.1.3"]
8-
[cumulo/recollect "0.6.2"]
8+
[cumulo/recollect "0.6.3"]
99
[cumulo/reel "0.2.0"]
1010
[cumulo/util "0.1.12"]
11-
[respo "0.13.0"]
11+
[respo "0.13.3-a1"]
1212
[respo/ui "0.3.15"]
1313
[respo/alerts "0.5.5"]
1414
[respo/message "0.3.6"]
1515
[respo/feather "0.1.1"]
16-
[cirru/bisection-key "0.1.5"]
16+
[cirru/bisection-key "0.1.6-a2"]
1717
[cirru/favored-edn "0.1.3"]
1818
[medley "1.3.0"]
1919
[applied-science/js-interop "0.2.7"]
@@ -30,14 +30,13 @@
3030
:modules {
3131
:client {:init-fn app.client/main!}
3232
}
33-
:devtools {:after-load app.client/reload!}
3433
:release {:output-dir "dist/"}
3534
:build-options {:manifest-name "assets.edn"}
3635
}
3736
:server {
3837
:target :node-script, :output-to "target/server.js", :main app.server/main!
3938
:devtools {
40-
:after-load app.server/reload!, :build-notify cumulo-util.build-info/on-build!
39+
:build-notify cumulo-util.build-info/on-build!
4140
:preloads [cumulo-util.build-info]
4241
}
4342
:release {:output-to "dist/server.js"}

src/app/client.cljs

+6-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,9 @@
6969
(on-page-touch #(if (nil? @*store) (connect!)))
7070
(println "App started!"))
7171

72-
(defn reload! [] (clear-cache!) (render-app! render!) (println "Code updated."))
72+
(defn ^:dev/after-load
73+
reload!
74+
[]
75+
(clear-cache!)
76+
(render-app! render!)
77+
(println "Code updated."))

src/app/server.cljs

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@
9999
(js/process.on "SIGINT" on-exit!)
100100
(repeat! 600 #(persist-db!)))
101101

102-
(defn reload! []
102+
(defn ^:dev/after-load
103+
reload!
104+
[]
103105
(println "Code updated.")
104106
(clear-twig-caches!)
105107
(reset! *reel (refresh-reel @*reel initial-db updater))

0 commit comments

Comments
 (0)