Date: Wed, 22 Sep 2021 23:40:12 +0200
Subject: [PATCH 001/208] Update links
---
CHANGELOG.md | 2 +-
bb.edn | 14 ++++++++++++--
doc/dev.md | 8 ++++----
resources/public/html/cljs-ajax.html | 4 ++--
resources/public/html/export.html | 2 +-
resources/public/html/reagent.html | 4 ++--
resources/public/index.html | 2 +-
7 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fbc7199..a92a013 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog
-## v0.0.3
+## v0.0.4
- Fixes for `try/catch`
diff --git a/bb.edn b/bb.edn
index 85cfff1..1eef13f 100644
--- a/bb.edn
+++ b/bb.edn
@@ -1,6 +1,7 @@
{:tasks
{:requires ([babashka.fs :as fs]
- [cheshire.core :as json])
+ [cheshire.core :as json]
+ [babashka.process :as p :refer [process]])
clean {:doc "Start from clean slate."
:task (do (run! fs/delete (fs/list-dir (fs/file "resources" "public" "js") "**.*"))
@@ -33,4 +34,13 @@
(shell "npm publish"))}
gh-pages {:doc "Updates Github pages with new release build."
- :task (shell "script/release.clj")}}}
+ :task (shell "script/release.clj")}
+
+ replace-version {:doc "Ported from bash one-liners. Expects two versions. TODO: port to Clojure."
+ :task
+ (let [[prev next] *command-line-args*]
+ (-> (process ["bash" "-c"
+ (format "rg %s --files-with-matches | xargs sed -i '' 's/%s/%s/g'"
+ prev prev next)]
+ {:inherit true})
+ p/check))}}}
diff --git a/doc/dev.md b/doc/dev.md
index f4a4b68..f9a35de 100644
--- a/doc/dev.md
+++ b/doc/dev.md
@@ -47,13 +47,13 @@ To create a new release:
To upgrade examples:
```
-rg '0.0.1' --files-with-matches | xargs sed -i '' 's/0.0.1/0.0.3/g'
+rg '0.0.1' --files-with-matches | xargs sed -i '' 's/0.0.1/0.0.4/g'
bb release
cd gh-pages
-git checkout -b v0.0.3
-git push --set-upstream origin v0.0.3
+git checkout -b v0.0.4
+git push --set-upstream origin v0.0.4
git checkout gh-pages
cd ..
```
-Then make a new release on Github with the `v0.0.3` tag.
+Then make a new release on Github with the `v0.0.4` tag.
diff --git a/resources/public/html/cljs-ajax.html b/resources/public/html/cljs-ajax.html
index dd5f627..b4f09f0 100644
--- a/resources/public/html/cljs-ajax.html
+++ b/resources/public/html/cljs-ajax.html
@@ -1,7 +1,7 @@
-
-
+
+
+
+
-
+
+
-
+
diff --git a/resources/public/cljs/bookmarklet.cljs b/resources/public/cljs/bookmarklet.cljs
index 79b0585..0f9eb15 100644
--- a/resources/public/cljs/bookmarklet.cljs
+++ b/resources/public/cljs/bookmarklet.cljs
@@ -41,7 +41,7 @@
}
};"
"if(typeof scittle === 'undefined'){"
- (append-tag :script {:src "https://borkdude.github.io/scittle/js/scittle.js"
+ (append-tag :script {:src "https://babashka.github.io/scittle/js/scittle.js"
:onerror "function(){alert('Error loading ' + this.src)}"
:onload "runCode"})
"} else {
diff --git a/resources/public/index.html b/resources/public/index.html
index d4fb915..6533776 100644
--- a/resources/public/index.html
+++ b/resources/public/index.html
@@ -60,21 +60,21 @@
-

+
Scittle
What is this?
- This project exposes the Small Clojure Interpreter in the
+
This project exposes the Small Clojure Interpreter in the
browser in such a way that you can use it with the script tag.
Project status
This project is still experimental and breaking changes may
happen. Feedback is welcome
- on Github.
+ on Github.