Commit 1edfa44
committed
feat: add npm package + GitHub Pages demo site
- Package entry (index.ts): exports frameLoopManager, useFrameLoop,
useFrameLoopManager only — components are demo-only
- package.json: scoped name @tuomashatakka/canvas-loop-framecapper,
peerDeps, exports map, publishConfig → GitHub npm registry
- vite.lib.config.ts: ESM + CJS library build with rolled-up .d.ts
- tsconfig.lib.json: scoped to lib/ for clean declaration generation
- .npmrc: maps @tuomashatakka scope to npm.pkg.github.com
- App.tsx: rewritten as docs landing page with live demo modal
- vite.config.ts: base path support for GitHub Pages
- .github/workflows/publish.yml: publishes on v* tag or workflow_dispatch
- .github/workflows/pages.yml: deploys demo to GitHub Pages on main push
- CLAUDE.md: comprehensive codebase documentation1 parent fe130f5 commit 1edfa44
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments