Update links

This commit is contained in:
Michiel Borkent 2021-09-22 23:40:12 +02:00
parent f760856d5c
commit 64dde95f82
7 changed files with 23 additions and 13 deletions

View file

@ -1,6 +1,6 @@
# Changelog
## v0.0.3
## v0.0.4
- Fixes for `try/catch`

14
bb.edn
View file

@ -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))}}}

View file

@ -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.

View file

@ -1,7 +1,7 @@
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/borkdude/scittle@0.0.3/js/scittle.js" type="application/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/borkdude/scittle@0.0.3/js/scittle.cljs-ajax.js" type="application/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.0.4/dist/scittle.js" type="application/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.0.4/dist/scittle.cljs-ajax.js" type="application/javascript"></script>
<script type="application/x-scittle">
(require '[ajax.core :refer [GET]])

View file

@ -1,6 +1,6 @@
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/borkdude/scittle@0.0.3/js/scittle.js" type="application/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.0.4/dist/scittle.js" type="application/javascript"></script>
<script type="application/x-scittle">
(defn my-alert []
(js/alert "You clicked!"))

View file

@ -1,9 +1,9 @@
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/borkdude/scittle@0.0.3/js/scittle.js" type="application/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.0.4/dist/scittle.js" type="application/javascript"></script>
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/borkdude/scittle@0.0.3/js/scittle.reagent.js" type="application/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.0.4/dist/scittle.reagent.js" type="application/javascript"></script>
<script type="application/x-scittle">
(require '[reagent.core :as r]
'[reagent.dom :as rdom])

View file

@ -74,7 +74,7 @@
<p>
To use scittle on your own site, it is recommended to use the links
published to
the <a href="https://github.com/borkdude/scittle/releases/tag/v0.0.3">releases
the <a href="https://github.com/borkdude/scittle/releases/tag/v0.0.4">releases
page</a>.
</p>