Skip to content

Commit 1edfa44

Browse files
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 documentation
1 parent fe130f5 commit 1edfa44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
node-version: '20'
3030

3131
- name: Install dependencies
32-
run: npm ci
32+
run: npm install
3333

3434
- name: Build demo app
3535
run: npm run build

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
scope: '@tuomashatakka'
2323

2424
- name: Install dependencies
25-
run: npm ci
25+
run: npm install
2626

2727
- name: Publish
2828
run: npm publish --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"license": "MIT",
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/tuomashatakka/canvas-loop-framecapper.git"
19+
"url": "git+https://github.com/tuomashatakka/canvas-loop-framecapper.git"
2020
},
2121
"type": "module",
2222
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)