Skip to content

Commit 5b840fe

Browse files
author
awb99
committed
webly 0.9 upgrade
1 parent e98b55e commit 5b840fe

16 files changed

+82
-70
lines changed

.github/workflows/static.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,16 @@ jobs:
5050
- name: build gh-pages
5151
if: success()
5252
run: |
53-
clojure -X:webly:npm-install:viewer
54-
clojure -X:webly:release-adv:viewer
55-
clojure -X:webly:static:viewer
53+
cd static
54+
clojure -X:webly:npm-install
55+
clojure -X:webly:release-adv
56+
clojure -X:webly:static
5657
clojure -X:nbeval
57-
cp target/webly/public/rdocument target/static/r -r
58+
cp .gorilla/public/rdocument .gorilla/static/r -r
5859
- name: Upload artifact
5960
uses: actions/upload-pages-artifact@v3
6061
with:
61-
path: "target/static"
62+
path: ".gorilla/static"
6263
- name: Deploy to GitHub Pages
6364
id: deployment
6465
uses: actions/deploy-pages@v4

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ rdocument/
2626
target
2727
.\#*
2828
*~
29-
\#*\#
29+
\#*\#
30+
.gorilla

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
## DEMO - Get Started
1010
- clone this repo
1111
```
12+
cd static
1213
clj -X:nbeval
1314
clj -X:webly:npm-install
1415
clj -X:webly:compile
@@ -23,4 +24,10 @@ is on [Docs Github Pages](https://pink-gorilla.github.io/docs/)
2324

2425
- [demo](https://github.com/pink-gorilla/demo) Please see demo for how to use it.
2526
- [quanta](https://github.com/clojure-quant/quanta) quantitative backtesting framework
26-
- [EDGAR](https://github.com/clojure-quant/edgar) visualise mutual fund holdings
27+
- [EDGAR](https://github.com/clojure-quant/edgar) visualise mutual fund holdings
28+
29+
30+
31+
32+
| | org.pinkgorilla/oauth2 | 0.2.32 | 0.2.33 |
33+
| | org.pinkgorilla/reval | 0.9.177 | 0.10.179 |

build-jar.sh

-8
This file was deleted.

build.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
))
66

77
(def lib 'org.pinkgorilla/goldly-docs)
8-
(def version (format "0.9.%s" (b/git-count-revs nil)))
8+
(def version (format "0.10.%s" (b/git-count-revs nil)))
99

1010
(defn jar "build the JAR" [opts]
1111
(println "Building the JAR")

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
rm target -r
3+
rm .gorilla -r
44
rm .shadow-cljs -r
55
rm package.json
66
rm package-lock.json

deps.edn

+16-27
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{:paths ["src"
22
"resources"
33
"target/webly"]
4-
:deps {org.pinkgorilla/webly {:mvn/version "0.8.714"}
5-
org.pinkgorilla/goldly {:mvn/version "0.7.684"}
4+
:deps {org.pinkgorilla/webly {:mvn/version "0.9.717"}
5+
org.pinkgorilla/goldly {:mvn/version "0.9.686"}
66
org.pinkgorilla/pinkie {:mvn/version "0.5.232"}
7-
org.pinkgorilla/modular {:mvn/version "0.2.61"}
8-
org.pinkgorilla/clj-service {:mvn/version "0.4.21"}
9-
org.pinkgorilla/oauth2 {:mvn/version "0.2.32"} ; oauth2 needs to be in docs, because of login-dialogs. rest can be loaded dynamically.
10-
org.pinkgorilla/re-flow {:mvn/version "0.1.7"}
11-
org.pinkgorilla/dali {:mvn/version "0.1.30"}
12-
org.pinkgorilla/reval {:mvn/version "0.9.177"}
7+
org.pinkgorilla/modular {:mvn/version "0.2.67"}
8+
org.pinkgorilla/clj-service {:mvn/version "0.4.23"}
9+
org.pinkgorilla/oauth2 {:mvn/version "0.2.33"} ; oauth2 needs to be in docs, because of login-dialogs. rest can be loaded dynamically.
10+
;org.pinkgorilla/re-flow {:mvn/version "0.1.7"}
11+
org.pinkgorilla/flowy {:mvn/version "0.1.28"}
12+
org.pinkgorilla/dali {:mvn/version "0.2.31"}
13+
org.pinkgorilla/reval {:mvn/version "0.10.179"}
1314
;org.pinkgorilla/devtools {:mvn/version "0.0.18"}
1415
;org.pinkgorilla/ui-binaryclock {:mvn/version "0.2.20"} ; binaryclock is useful for testing.
1516
;; "ui design in general"
@@ -26,18 +27,18 @@
2627
;; "tables"
2728
org.pinkgorilla/ui-pprint-frisk {:mvn/version "0.6.565"} ; this is only frisk
2829
;org.pinkgorilla/ui-reacttable {:mvn/version "0.0.6"} ; pinkie problem
29-
org.pinkgorilla/reagent-table {:mvn/version "0.3.88"}; ag-grid, cheetah-grid, highcharts, vega and tml-ds-cljs
30+
org.pinkgorilla/dali-table {:mvn/version "0.3.91"} ; ag-grid, cheetah-grid, highcharts, vega and tml-ds-cljs
3031
org.pinkgorilla/options {:mvn/version "0.0.16"}
3132
; "charts"
32-
org.pinkgorilla/ui-cytoscape {:mvn/version "0.1.10"}
33-
org.pinkgorilla/ui-leaflet {:mvn/version "0.1.23"}
33+
org.pinkgorilla/ui-cytoscape {:mvn/version "0.1.11"}
34+
;org.pinkgorilla/ui-leaflet {:mvn/version "0.1.23"}
3435
org.pinkgorilla/ui-sparklines {:mvn/version "0.2.7"}
3536
org.pinkgorilla/ui-video {:mvn/version "0.2.10"} ; react-player clojure-compiler issue, youtube-player ok
36-
37+
3738
;org.pinkgorilla/ui-math {:mvn/version "0.0.7"}
3839
; non lazy deps
3940
;org.pinkgorilla/ui-quil {:mvn/version "0.1.7"} ; not bundeled (too big)
40-
41+
4142
; run by default in docs-services
4243
nrepl/nrepl {:mvn/version "1.2.0"}
4344
cider/cider-nrepl {:mvn/version "0.49.1"}}
@@ -50,7 +51,7 @@
5051
:jvm-opts ["-Dmaven.wagon.rto=90000"]}
5152

5253
; demo ui
53-
:webly {:exec-fn webly.app.app/webly-build
54+
:webly {:exec-fn webly.spa/webly-build
5455
:exec-args {:config ["docs/docs-config.edn"]
5556
:profile "npm-install"}}
5657

@@ -65,17 +66,5 @@
6566
:exec-args {:profile "jetty"
6667
:config ["docs/docs-config.edn"]
6768
:services "docs/docs-services.edn"}}
68-
69-
:viewer {:extra-paths ["static"]}
70-
71-
:nbeval {:exec-fn modular.system/start!
72-
:exec-args {:run demo.task/eval-all
73-
:config ["docs/docs-config.edn"]
74-
:services "docs/task-services.edn"}}
75-
76-
;; debugging
77-
78-
:show-public {:exec-fn public-res/show-public
79-
:extra-paths ["dev"]}
80-
69+
8170
}}

dev/public_res.clj

-12
This file was deleted.

resources/docs/docs-config.edn

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
[#{"*"} :info]]
55
:appenders {:default {:type :console-color}
66
:file {:type :file
7-
:fname "target/file.log"}
7+
:fname ".gorilla/file.log"}
88
:rolling {:type :file-rolling
9-
:path "target/rolling.log"
9+
:path ".gorilla/rolling.log"
1010
:pattern :monthly}
1111
:workflow {:type :file-rolling-context
1212
:context :scheduled-data-import
13-
:path "target/workflow.log"
13+
:path ".gorilla/workflow.log"
1414
:pattern :monthly}}}
1515

1616
:timbre/cljs {:min-level [[#{"pinkgorilla.nrepl.*"} :warn]
@@ -20,7 +20,7 @@
2020

2121
:scratchpad {:tap true}
2222

23-
:reval {:rdocument {:fpath "target/webly/public/rdocument"
23+
:reval {:rdocument {:fpath ".gorilla/public/rdocument"
2424
:rpath "/r/rdocument"}
2525
:collections {:demo {:clj "demo/notebook/" ; embedded notebooks in jars.
2626
:cljs "demo/notebook/"}}}

resources/docs/docs-services.edn

+18-8
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
{; the print services can be comment out. Just useful for testing.
55
:print-modular-env {:start (println "modular environment: " #ref [:modular])}
66

7-
:config {:start (modular.config/load-config! (:config #ref [:modular]))}
7+
:config1 {:start (modular.config/load-config! (:config #ref [:modular]))}
8+
:config {:start (deref (clip/ref :config1))}
89

910
:timbre {:start (modular.log/timbre-config!
10-
(:timbre/clj (deref (clip/ref :config))))}
11+
(:timbre/clj (clip/ref :config)))}
1112

1213
:exts {:start (extension/discover)}
1314

@@ -21,13 +22,22 @@
2122
:reval {:start (reval.core/start-reval
2223
(merge {:clj (clip/ref :clj-service)
2324
:reval-role nil}
24-
(:reval (deref (clip/ref :config)))))}
25-
26-
:webly {:start (webly.app.app/start-webly
27-
(clip/ref :exts)
28-
(deref (clip/ref :config))
25+
(:reval (clip/ref :config))))}
26+
27+
:exec {:start (flowy.executor/start-executor
28+
{:env {}
29+
:exts (clip/ref :exts)}
30+
(:services (clip/ref :config)))}
31+
32+
:flowy {:start (flowy.reflower/start-reflower (clip/ref :exec))}
33+
34+
:webly {:start (webly.spa/start-webly
35+
{:exts (clip/ref :exts)
36+
:ctx {:flowy (clip/ref :flowy)}}
37+
(clip/ref :config)
2938
(:profile #ref [:modular]))
30-
:stop (webly.app.app/stop-webly this)}
39+
:stop (webly.spa/stop-webly this)}
40+
3141

3242
:nrepl {;:pre-start (spit ".nrepl-port" (str 9100))
3343
:start (nrepl.server/start-server

static/deps.edn

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{:paths ["src" "resources"]
2+
:deps {org.pinkgorilla/docs {:local/root ".." :deps/manifest :deps}}
3+
4+
:aliases {; notebook eval
5+
:nbeval {:exec-fn modular.system/start!
6+
:exec-args {:run demo.task/eval-all
7+
:config ["docs/docs-config.edn"]
8+
:services "docs/task-services.edn"}}
9+
; demo ui
10+
:webly {:exec-fn webly.spa/webly-build
11+
:exec-args {:config ["docs/docs-config.edn"]
12+
:profile "npm-install"}}
13+
14+
:npm-install {:exec-args {:profile "npm-install"}}
15+
:compile {:exec-args {:profile "compile"}}
16+
:release {:exec-args {:profile "release"}}
17+
:release-adv {:exec-args {:profile "release-adv"}}
18+
:static {:exec-args {:profile "static"}}
19+
:ci {:exec-args {:profile "ci"}}
20+
21+
:run {:exec-fn modular.system/start!
22+
:exec-args {:profile "jetty"
23+
:config ["docs/docs-config.edn"]
24+
:services "docs/docs-services.edn"}}}}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/sh
22

3-
rm target -r
3+
rm .gorilla -r
44
rm .shadow-cljs -r
55

66
clojure -X:webly:npm-install
77
clojure -X:webly:compile
88
# clojure -X:webly:release-adv
99
clojure -X:webly:static
1010
clojure -X:nbeval
11-
cp target/webly/public/rdocument target/static/r -r
11+
# cp target/webly/public/rdocument target/static/r -r

0 commit comments

Comments
 (0)