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 # Changelog
## v0.0.3 ## v0.0.4
- Fixes for `try/catch` - Fixes for `try/catch`

14
bb.edn
View file

@ -1,6 +1,7 @@
{:tasks {:tasks
{:requires ([babashka.fs :as fs] {: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." clean {:doc "Start from clean slate."
:task (do (run! fs/delete (fs/list-dir (fs/file "resources" "public" "js") "**.*")) :task (do (run! fs/delete (fs/list-dir (fs/file "resources" "public" "js") "**.*"))
@ -33,4 +34,13 @@
(shell "npm publish"))} (shell "npm publish"))}
gh-pages {:doc "Updates Github pages with new release build." 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: 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 bb release
cd gh-pages cd gh-pages
git checkout -b v0.0.3 git checkout -b v0.0.4
git push --set-upstream origin v0.0.3 git push --set-upstream origin v0.0.4
git checkout gh-pages git checkout gh-pages
cd .. 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> <html>
<head> <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 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.cljs-ajax.js" type="application/javascript"></script>
<script type="application/x-scittle"> <script type="application/x-scittle">
(require '[ajax.core :refer [GET]]) (require '[ajax.core :refer [GET]])

View file

@ -1,6 +1,6 @@
<html> <html>
<head> <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"> <script type="application/x-scittle">
(defn my-alert [] (defn my-alert []
(js/alert "You clicked!")) (js/alert "You clicked!"))

View file

@ -1,9 +1,9 @@
<html> <html>
<head> <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@17/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.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"> <script type="application/x-scittle">
(require '[reagent.core :as r] (require '[reagent.core :as r]
'[reagent.dom :as rdom]) '[reagent.dom :as rdom])

View file

@ -74,7 +74,7 @@
<p> <p>
To use scittle on your own site, it is recommended to use the links To use scittle on your own site, it is recommended to use the links
published to 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>. page</a>.
</p> </p>