feat: add examples folder with local testing app for catalyst-core#246
Open
mayankmahavar1mg wants to merge 2 commits into
Open
feat: add examples folder with local testing app for catalyst-core#246mayankmahavar1mg wants to merge 2 commits into
mayankmahavar1mg wants to merge 2 commits into
Conversation
Introduces an examples/ directory for local testing of catalyst-core changes before release. Each example app is self-contained, lives outside npm workspaces, and is never published. - examples/sync-core.js: shared script that clears stale dist + node_modules/catalyst-core, rebuilds catalyst-core fresh, and copies the full package into the example's node_modules. Reusable by any future example app via `npm run sync-core`. - examples/test-video-hook-poc/: full Catalyst app covering camera, video stream, file picker, haptics, notifications, device info, and more. Used to validate hook behaviour against a real app before cutting a release. - prompt.txt: paste into Claude Code (with catalyst_mcp) to auto-generate the three gitignored config files (config.json, google-services.json, GoogleService-Info.plist) for any machine. - README.md: step-by-step setup guide — generate configs, npm install, sync-core, run. - .gitignore updated to exclude examples/*/build, examples/*/logs, and the three generated config files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Added a Prerequisites section to README.md and a header comment in prompt.txt — both point to `npx create-catalyst-app@latest catalyst-mcp` as the required setup step before running the config generation prompt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
DeputyDev will no longer review pull requests automatically.To request a review, simply comment #review on your pull request—this will trigger an on-demand review whenever you need it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/— a directory for local test apps that live in the repo but are never npm-published or included in workspacesexamples/sync-core.js: shared script that clears stale artifacts, rebuildspackages/catalyst-corefrom source, and injects the full package into the example'snode_modules. Any future example app can wire it up with one line inpackage.jsonexamples/test-video-hook-poc/: a full Catalyst app covering 12 hooks (camera, video stream, file picker, haptics, notifications, device info, safe area, network, intent, Google Sign-In, data protection, camera permission). Tested locally via Antigravityprompt.txt— paste into Claude Code (with catalyst_mcp) to auto-generate the three gitignored config files for any machineREADME.mdwith full setup steps and catalyst_mcp as a documented prerequisiteTest plan
npx create-catalyst-app@latest catalyst-mcpto set up catalyst_mcpnpm installfrom insideexamples/test-video-hook-poc/prompt.txtvia Claude Code to generate config filesnpm run sync-core— verify it cleans, builds, and copies catalyst-core into node_modulesnpm start— verify app bootsnpm run buildApp:ios/buildApp:android— verify native build worksconfig/config.json,google-services.json,GoogleService-Info.plistare not tracked by git🤖 Generated with Claude Code