Skip to content

Commit

Permalink
Webly2 (#50)
Browse files Browse the repository at this point in the history
* clj-service move-out

* docs removed

* goldly vwebly2 compiling

* compiling with reval-sci added

* reval-sci compiling

* goldly-test compiling

* demo renamed

* sci compile working

* ci

* readme

---------

Co-authored-by: awb99 <[email protected]>
  • Loading branch information
awb99 and awb99 authored Apr 15, 2024
1 parent b0ced8e commit c7f0ddb
Show file tree
Hide file tree
Showing 162 changed files with 1,284 additions and 2,007 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
clj-kondo: 2022.05.31 # Clj-kondo
cljfmt: 0.10.2 # cljfmt
cljstyle: 0.15.0 # cljstyle
- name: bb ci-check
run: bb ci-check
- name: bb ci-goldly-deploy
env:
CLOJARS_USERNAME: ${{ secrets.ReleaseUsername }}
Expand All @@ -41,22 +39,5 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "CI/CD"
bb ci-goldly-deploy
- name: bb ci-goldly-docs-deploy
if: success()
# if: github.event_name == 'push'
env:
CLOJARS_USERNAME: ${{ secrets.ReleaseUsername }}
CLOJARS_PASSWORD: ${{ secrets.ReleasePassword }}
CODECOV_TOKEN: ${{ secrets.CodecovToken }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "CI/CD"
bb ci-goldly-docs-deploy
# bash <(curl -s https://codecov.io/bash)
# lein with-profile +relay-jetty cloverage
# bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
#
# Could not transfer metadata foo:bar/maven-metadata.xml from/to releases (https://clojars.org/repo): Read timed out
# Default 10000 not enough for us
# export LEIN_JVM_OPTS="-Dmaven.wagon.rto=90000"
clojure -T:build jar
clojure -T:build deploy
30 changes: 0 additions & 30 deletions .github/workflows/pr.yml

This file was deleted.

18 changes: 2 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,8 @@ shadow-cljs.edn
package.json
package-lock.json
karma.conf.js
goldly_bindings_generated.cljs

goldly/resources/META-INF
goldly/node_modules/
goldly/target/
goldly/resources/META-INF

goldly-test/node_modules/
goldly-test/target/
goldly-docs/node_modules/
goldly-docs/target/
goldly-docs/resources/META-INF


docs/
rdocument/
target/
node_modules/
.clj-kondo
scratchpad/target
*~
Expand Down
31 changes: 2 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,8 @@
[![Clojars Project](https://img.shields.io/clojars/v/org.pinkgorilla/goldly.svg)](https://clojars.org/org.pinkgorilla/goldly)
[![Clojars Project](https://img.shields.io/clojars/v/org.pinkgorilla/goldly-docs.svg)](https://clojars.org/org.pinkgorilla/goldly-docs)

- goldly lets you create interactive visualization in a webbrowser in clojure
- visualizations can interact with the clojure server.
- inspired by [R/shiny](https://shiny.rstudio.com/)
- uses the sci clojurescript interpreter for a clojurescript kernel
- brings many visualizers
- vega and highcharts for 2d plotting
- aggrid for tables/ grids
- leaflet for geographic map
- visualizers can be easily extended. you can access the entire npm + clojurescript ecosystem.

- visualize edn datastructures (either from a repl or in the web-app (via scratchpad)

Whichever method you use to start goldly, you should reach it at [`http://localhost:8080/`](http://localhost:8080/).

## goldly docs - in your project

You need to include the **goldly-docs** artefact, which already includes many ui-renderers
and contains a pre-built javascript bundle. In all other ways it is identical to goldly.

You can:
- add custom pages to goldly-docs easily.
- use your clj functions to render ui visualizations.

- [demo goldly](https://github.com/pink-gorilla/demo-goldly) Please see goldly-demo for how to use it.
- [trateg](https://github.com/clojure-quant/trateg) quantitative backtesting framework
- [EDGAR](https://github.com/clojure-quant/edgar) visualise mutual fund holdings

- goldly uses the sci clojurescript interpreter to create a clojurescript kernel.
- goldly uses webly lazy shadow-cljs lazy modules.

## goldly - in your project **with custom ui-renderers**

Expand All @@ -55,8 +30,6 @@ Run inside cloned goldly git repo.
This option is mainly there for development of goldly.
For regular use, the long compile-times are not really sensible.

Please see `bb tasks` for all available options.

```
cd goldly-test
clj -X:goldly-build:npm-install
Expand Down
45 changes: 0 additions & 45 deletions SIZE.md

This file was deleted.

162 changes: 0 additions & 162 deletions bb.edn

This file was deleted.

22 changes: 2 additions & 20 deletions goldly/build.clj → build.clj
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
(ns build
(:require
[babashka.fs :as fs]
[clojure.tools.build.api :as b]
[org.corfield.build :as bb] ; https://github.com/seancorfield/build-clj
[modular.date :refer [now-str]]))
))

(def lib 'org.pinkgorilla/goldly)
(def version (format "0.4.%s" (b/git-count-revs nil)))
(def version (format "0.7.%s" (b/git-count-revs nil)))

(defn jar "build the JAR" [opts]
(println "Building the JAR")
(spit (doto (fs/file "resources/META-INF/pink-gorilla/goldly/meta.edn")
(-> fs/parent fs/create-dirs)) {:module-name "goldly"
:version version
:generated (now-str)})
(-> opts
(assoc :lib lib
:version version
Expand All @@ -28,19 +23,6 @@
:version version)
(bb/deploy)))

#_(def pom-template
[[:licenses
[:license
[:name "Eclipse Public License"]
[:url "https://www.eclipse.org/legal/epl-v10.html"]]]
[:developers
[:developer
[:name "pink-gorilla"]]]
[:scm
[:url "https://github.com/pink-gorilla/goldly"]
[:connection "scm:git:git://github.com/pink-gorilla/goldly.git"]
[:developerConnection "scm:git:ssh://[email protected]/pink-gorilla/goldly.git"]]])

;If you are working in a monorepo, such as the [Polylith architecture](https://polylith.gitbook.io/), and need
;to build library JAR files from projects that rely on `:local/root` dependencies to specify other source
;components, you will generally want to pass `:transitive true` to the `jar` task.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit c7f0ddb

Please sign in to comment.