Skip to content

Commit 255f24a

Browse files
committed
Update examples for @tolinsimpson/minimajs package and fix GitHub Packages workflow
1 parent f2d9d78 commit 255f24a

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

MinimaJS/examples/getting-started.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ <h3>3. LLM-Optimized APIs (One-liners)</h3>
174174
quickForm, quickCard, $div, $button,
175175
// Rendering
176176
render
177-
} from '../src/minima.js';
177+
} from '@tolinsimpson/minimajs';
178178

179179
// =========================================================================
180180
// 1. Basic Counter - Shows React-like hooks

MinimaJS/examples/llm-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h2 class="demo-title">4. Page Builder - Type-guided construction</h2>
8484
safeRender, safeComponent, tryRender,
8585
page, builder,
8686
div, h3, p, button, useState
87-
} from './src/minima-llm.js';
87+
} from '@tolinsimpson/minimajs/llm';
8888

8989
// =========================================================================
9090
// 1. Template Builders Demo

MinimaJS/examples/minima.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* MinimaJS Test Suite v1.0.0 - Comprehensive Framework Testing
33
*/
44

5-
import { createElement, useState, useEffect, render, html, defineComponent, createApp } from '../src/minima.js';
5+
import { createElement, useState, useEffect, render, html, defineComponent, createApp } from '@tolinsimpson/minimajs';
66

77
// Test utilities
88
const assert = (condition, message) => {

MinimaJS/examples/ultra-concise-demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>MinimaJS: Shortest API Demo</h1>
1919

2020
<script type="module">
2121
// Import ultra-short API
22-
import { h, div, button, input, ul, li, state, effect, t, app, when, each, toggle, counter, formState, inputState } from '../src/minima.js';
22+
import { h, div, button, input, ul, li, useState, useEffect, html, app, when, each, toggle, counter, formState, inputState } from '@tolinsimpson/minimajs';
2323

2424
// Counter (4 lines!)
2525
const Counter = () => {
@@ -29,7 +29,7 @@ <h1>MinimaJS: Shortest API Demo</h1>
2929

3030
// Todo App (8 lines!)
3131
const Todos = () => {
32-
const [todos, setTodos] = state([]);
32+
const [todos, setTodos] = useState([]);
3333
const [inputVal, setInput, onChange] = inputState('');
3434
const add = () => inputVal && (setTodos([...todos, inputVal]), setInput(''));
3535
return div({},

0 commit comments

Comments
 (0)