Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ jobs:
calcit calcit.cirru edit format
git diff --exit-code -- calcit.cirru
calcit calcit.cirru --check-only
calcit calcit.cirru analyze dynamic-methods --max 0
calcit calcit.cirru analyze dynamic-methods --summary-only --format json | jq -e '.data.summary.findings == 0'

- name: Compile and build
run: |
calcit calcit.cirru js
node --test scripts/typed-reel-render.test.mjs
yarn vite build --base=./

- name: Deploy to server
Expand Down
7 changes: 4 additions & 3 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
button $ {} (:class-name css/button) (:inner-text |Run)
:on-click $ fn (e d!)
println $ reel-schema/read-field state :content
when dev? $ comp-reel (>> states :reel) reel $ {}
when dev? $ comp-typed-reel (>> states :reel) reel $ {}
:examples $ []
:schema $ :: 'Fn $ {} (:return 'respo.schema/Component)
:args $ [] $ :: 'reel.typed/State 'app.schema/Op 'app.schema/Store
Expand All @@ -45,7 +45,7 @@
respo.css :refer $ defstyle
respo.core :refer $ defcomp defeffect <> >> div button textarea span input
respo.comp.space :refer $ =<
reel.comp.reel :refer $ comp-reel
reel.comp.reel :refer $ comp-typed-reel
reel.schema :as reel-schema
app.config :refer $ dev?
app.schema :as schema
Expand Down Expand Up @@ -188,7 +188,8 @@
%none
:examples $ []
:schema $ :: 'Fn $ {}
:args $ [] 'Dynamic
:args $ [] 'T
:generics $ [] 'T
:return $ :: 'Option 'app.schema/Store
'store $ %{} 'CodeEntry (:doc |)
:code $ quote $ def store
Expand Down
10 changes: 5 additions & 5 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:calcit-version |0.18.1)
:version |0.0.3
:dependencies $ {} (|Respo/reel.calcit |0.6.30)
|Respo/respo-ui.calcit |0.7.30
|Respo/respo.calcit |0.16.112
{} (:calcit-version |0.19.1)
:version |0.0.4
:dependencies $ {} (|Respo/reel.calcit |0.6.32)
|Respo/respo-ui.calcit |0.7.31
|Respo/respo.calcit |0.16.113
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"packageManager": "yarn@4.18.0",
"dependencies": {
"@calcit/procs": "0.18.1"
"@calcit/procs": "0.19.1"
},
"devDependencies": {
"bottom-tip": "^0.1.5",
"vite": "^8.3.0"
},
"version": "0.0.3"
"version": "0.0.4"
}
18 changes: 18 additions & 0 deletions scripts/typed-reel-render.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import assert from 'node:assert/strict';
import test from 'node:test';

process.env.mode = 'dev';

const { comp_container } = await import('../js-out/app.comp.container.mjs');
const { store } = await import('../js-out/app.schema.mjs');
const { new_reel, toggle_display } = await import('../js-out/reel.typed.mjs');
const { make_string } = await import('../js-out/respo.render.html.mjs');

test('renders the typed Reel devtools with an empty history', () => {
const reel = toggle_display(new_reel(store));
const html = make_string(comp_container(reel));

assert.match(html, /placeholder="Content"/);
assert.match(html, /Merge/);
assert.match(html, /Reset/);
});
10 changes: 5 additions & 5 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading