Update versions
This commit is contained in:
parent
ade3c6e111
commit
25feaf2641
|
@ -15,7 +15,7 @@
|
|||
- Add all public vars of `cljs-ajax` `ajax.core`
|
||||
- Upgrade several built-in libraries
|
||||
|
||||
## v0.4.11
|
||||
## v0.5.12
|
||||
|
||||
- Add `scittle.promesa.js` plugin. This gives access to the [promesa](https://cljdoc.org/d/funcool/promesa/8.0.450/doc/user-guide) library.
|
||||
- Add `scittle.pprint.js` plugin. This gives access to [cljs.pprint](https://cljs.github.io/api/cljs.pprint/).
|
||||
|
|
5
bb.edn
5
bb.edn
|
@ -55,7 +55,10 @@
|
|||
(run 'bump-version)
|
||||
(shell "npm publish"))}
|
||||
|
||||
replace-version {:doc "Ported from bash one-liners. Expects two versions. TODO: port to Clojure."
|
||||
replace-version {:doc "Ported from bash one-liners. Expects two versions.
|
||||
TODO: port to Clojure.
|
||||
TODO: skip changelog.md
|
||||
"
|
||||
:task
|
||||
(let [[prev next] *command-line-args*]
|
||||
(-> (process ["bash" "-c"
|
||||
|
|
12
doc/dev.md
12
doc/dev.md
|
@ -89,18 +89,20 @@ script/release.clj
|
|||
To create a new NPM release:
|
||||
|
||||
- Prepare minor version in `package.json` if it should be bumped
|
||||
- Run `bb npm-publish`
|
||||
- Run `bb npm-publish`: this will compile, bump minor version, create tag and and push to npm and Github
|
||||
- Create Github release with updated links
|
||||
|
||||
|
||||
To upgrade examples:
|
||||
|
||||
```
|
||||
rg '0.0.1' --files-with-matches | xargs sed -i '' 's/0.0.4.11.1.0/g'
|
||||
rg '0.0.1' --files-with-matches | xargs sed -i '' 's/0.0.5.12.1.0/g'
|
||||
bb release
|
||||
cd gh-pages
|
||||
git checkout -b v0.4.11
|
||||
git push --set-upstream origin v0.4.11
|
||||
git checkout -b v0.5.12
|
||||
git push --set-upstream origin v0.5.12
|
||||
git checkout gh-pages
|
||||
cd ..
|
||||
```
|
||||
|
||||
Then make a new release on Github with the `v0.4.11` tag.
|
||||
Then make a new release on Github with the `v0.5.12` tag.
|
||||
|
|
|
@ -21,7 +21,7 @@ the normal routine:
|
|||
|
||||
``` html
|
||||
<script>var SCITTLE_NREPL_WEBSOCKET_PORT = 1340;</script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.nrepl.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.nrepl.js" type="application/javascript"></script>
|
||||
```
|
||||
|
||||
Also include the CLJS file that you want to evaluate with nREPL:
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.js" type="application/javascript"></script>
|
||||
<script>var SCITTLE_NREPL_WEBSOCKET_PORT = 1340;</script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.nrepl.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.nrepl.js" type="application/javascript"></script>
|
||||
<script type="application/x-scittle" src="playground.cljs"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<html>
|
||||
<head>
|
||||
<script async src="https://ga.jspm.io/npm:es-module-shims@1.6.1/dist/es-module-shims.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.js"></script>
|
||||
<script>scittle.core.disable_auto_eval();</script>
|
||||
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
|
||||
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.reagent.js"> </script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.re-frame.js"> </script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.reagent.js"> </script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.re-frame.js"> </script>
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.cljs-ajax.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.cljs-ajax.js" type="application/javascript"></script>
|
||||
<script type="application/x-scittle">
|
||||
(require '[ajax.core :refer [GET]])
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.js" type="application/javascript"></script>
|
||||
<script type="application/x-scittle">
|
||||
(defn my-alert []
|
||||
(js/alert "You clicked!"))
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.4.11/dist/scittle.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/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/npm/scittle@0.4.11/dist/scittle.reagent.js" type="application/javascript"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/scittle@0.5.12/dist/scittle.reagent.js" type="application/javascript"></script>
|
||||
<script type="application/x-scittle">
|
||||
(require '[reagent.core :as r]
|
||||
'[reagent.dom :as rdom])
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
|
||||
To embed scittle in your website, it is recommended to use the links
|
||||
published to
|
||||
the <a href="https://github.com/babashka/scittle/releases/tag/v0.4.11">releases
|
||||
the <a href="https://github.com/babashka/scittle/releases/tag/v0.5.12">releases
|
||||
page</a>.
|
||||
|
||||
Include <tt>scittle.js</tt> and write a <tt>script</tt> tag
|
||||
|
|
Loading…
Reference in a new issue