From bd2432055b5461eb5a26666a8a44619c98ef9ec1 Mon Sep 17 00:00:00 2001 From: Sam Ritchie Date: Fri, 9 Jun 2023 08:03:02 -0600 Subject: [PATCH] bump clerk --- .github/workflows/gh-pages.yml | 8 ++------ .github/workflows/kondo.yml | 17 +++++++---------- bb.edn | 21 +++++++++++++++------ build.clj | 2 +- deps.edn | 10 +++++----- dev/leva/notebook.clj | 11 ++++------- 6 files changed, 34 insertions(+), 35 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 3a03cc2..38dec24 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -20,16 +20,12 @@ jobs: uses: actions/checkout@v3 - name: Install clojure tools - uses: DeLaGuardo/setup-clojure@4.0 + uses: DeLaGuardo/setup-clojure@master with: cli: latest + bb: latest github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Install babashka - uses: just-sultanov/setup-babashka@v2 - with: - version: '0.8.156' - - name: Build static site run: bb build-static diff --git a/.github/workflows/kondo.yml b/.github/workflows/kondo.yml index e285eb9..96ea4d0 100644 --- a/.github/workflows/kondo.yml +++ b/.github/workflows/kondo.yml @@ -12,16 +12,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Install clojure tools - uses: DeLaGuardo/setup-clojure@master + - name: Install Babashka + uses: DeLaGuardo/setup-clojure@10.2 with: - cli: latest - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Install babashka - uses: just-sultanov/setup-babashka@v2 - with: - version: '0.8.156' + bb: latest - name: Cache kondo directory uses: actions/cache@v2 @@ -30,5 +24,8 @@ jobs: key: ${{ runner.os }}-kondo restore-keys: ${{ runner.os }}-kondo - - name: Run clj-kondo + - name: Lint dependencies + run: bb lint-deps + + - name: Lint project files run: bb lint --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}' diff --git a/bb.edn b/bb.edn index 346cc6a..324c964 100644 --- a/bb.edn +++ b/bb.edn @@ -1,9 +1,9 @@ {:deps {org.babashka/http-server {:mvn/version "0.1.11"} - org.babashka/cli {:mvn/version "0.2.23"}} - :pods {clj-kondo/clj-kondo {:version "2023.01.20"}} + org.babashka/cli {:mvn/version "0.2.23"} + io.github.clj-kondo/clj-kondo-bb + {:git/tag "v2023.01.20" :git/sha "adfc7df"}} :tasks - {:requires ([babashka.cli :as cli] - [pod.borkdude.clj-kondo :as clj-kondo]) + {:requires ([babashka.cli :as cli]) :init (do (def cli-opts (cli/parse-opts *command-line-args* {:coerce {:port :int}})) @@ -51,7 +51,16 @@ {:doc "Release the library to Clojars." :task (shell "clojure -T:build publish")} + lint-deps + {:requires ([clj-kondo.core :as kondo]) + :doc "Lint dependencies." + :task (kondo/run! + {:lint [(with-out-str + (babashka.tasks/clojure + "-Spath -A:nextjournal/clerk"))] + :dependencies true})} + lint {:doc "Lint the src and dev directories with clj-kondo." - :task (clj-kondo/print! - (clj-kondo/run! {:lint ["src" "dev"]}))}}} + :task (exec 'clj-kondo.core/exec) + :exec-args {:lint ["src" "dev"]}}}} diff --git a/build.clj b/build.clj index 83a139a..c413de4 100644 --- a/build.clj +++ b/build.clj @@ -17,7 +17,7 @@ ;; ## Variables (def lib 'org.mentat/leva.cljs) -(def version "0.2.2") +(def version "0.3.0") (def pom-deps {'org.babashka/sci {:mvn/version "0.6.37" diff --git a/deps.edn b/deps.edn index d1f4019..9696e99 100644 --- a/deps.edn +++ b/deps.edn @@ -1,5 +1,5 @@ {:paths ["src" "resources"] - :deps {reagent/reagent {:mvn/version "1.1.1"}} + :deps {reagent/reagent {:mvn/version "1.2.0"}} :aliases {:nextjournal/clerk @@ -7,17 +7,17 @@ :extra-deps {org.clojure/clojure {:mvn/version "1.11.1"} org.clojure/clojurescript {:mvn/version "1.11.60"} - org.mentat/clerk-utils {:mvn/version "0.4.1"} + org.mentat/clerk-utils {:mvn/version "0.6.0"} io.github.nextjournal/clerk - {:git/sha "fad499407d979916d21b33cc7e46e73f7a485e37"} + {:git/sha "1f6c5331418aaf9c5a4335fc2e6e95f07dc3af6b"} io.github.nextjournal/clerk.render {:git/url "https://github.com/nextjournal/clerk" - :git/sha "fad499407d979916d21b33cc7e46e73f7a485e37" + :git/sha "1f6c5331418aaf9c5a4335fc2e6e95f07dc3af6b" :deps/root "render"}} :exec-fn user/build!} :build - {:deps {io.github.clojure/tools.build {:git/tag "v0.8.2" :git/sha "ba1a2bf"} + {:deps {io.github.clojure/tools.build {:git/tag "v0.9.4" :git/sha "76b78fe"} slipset/deps-deploy {:mvn/version "0.2.0"}} :ns-default build}}} diff --git a/dev/leva/notebook.clj b/dev/leva/notebook.clj index 352bd3f..083dc42 100644 --- a/dev/leva/notebook.clj +++ b/dev/leva/notebook.clj @@ -1,9 +1,6 @@ -^#:nextjournal.clerk -{:toc true - :no-cache true - :visibility :hide-ns} +^{:nextjournal.clerk/visibility {:code :hide}} (ns leva.notebook - {:nextjournal.clerk/auto-expand-results? true} + #:nextjournal.clerk{:toc true :no-cache true} (:require [mentat.clerk-utils.docs :as docs] [mentat.clerk-utils.show :refer [show-sci]] [nextjournal.clerk :as clerk])) @@ -11,8 +8,8 @@ ^{::clerk/visibility {:code :hide :result :hide}} (clerk/eval-cljs ;; These aliases only apply inside this namespace. - '(require '[leva.core :as leva]) - '(require '[reagent.core :as reagent])) + '(do (require '[leva.core :as leva]) + (require '[reagent.core :as reagent]))) ;; # Leva.cljs ;;