Skip to content

feat: add Vue 2/3 and Angular example apps#136

Merged
fadi-george merged 7 commits into
mainfrom
fg/more-examples
May 18, 2026
Merged

feat: add Vue 2/3 and Angular example apps#136
fadi-george merged 7 commits into
mainfrom
fg/more-examples

Conversation

@fadi-george
Copy link
Copy Markdown
Collaborator

@fadi-george fadi-george commented May 15, 2026

Description

Add modern Vite-based example apps for Vue 2, Vue 3, and Angular alongside the existing React example, standardize the per-example setup flow, and switch all dev servers to port 4000 with locally-trusted HTTPS.

Details

  • Add src/static/vue/v2/example/, src/static/vue/v3/example/, and src/static/onesignal-ngx/example/ apps following the same shape as the React example
  • Modernize the Vue 3 example from Vue CLI to Vite
  • Standardize scripts/setup.sh across React/Vue/Angular: pack the parent SDK as a fixed-name tarball and install it via vp install --force to avoid duplicate package.json entries
  • Add HTTPS for React/Vue via vite-plugin-mkcert, and for Angular via a scripts/start.sh wrapper that uses mkcert certs when available (and falls back to Angular's self-signed cert otherwise)
  • Move all example dev servers to port 4000
  • Remove bun.lock from the rsync excludes in scripts/copy-build-to-outputs.sh so the script stays consistent with the lockfiles committed under outputs/

Testing

I tested all four examples end-to-end and confirmed each one builds, installs the freshly packed parent SDK, serves on localhost:4000 over HTTPS, and loads OneSignal without errors.

Made with Cursor

@fadi-george fadi-george requested a review from sherwinski May 15, 2026 23:38
Copy link
Copy Markdown
Contributor

@sherwinski sherwinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We exclude bun.lock in copy-build-to-outputs.sh but we're still committing them in this repo. I think we should be consistent one way or another.

Generated bun.lock files for the Vue 2, Vue 3, and Angular examples under
src/static so they survive the build/copy pipeline (rsync --delete was
wiping the empty example dirs otherwise). Refreshed the React example
lockfile and the downstream outputs/ snapshots so everything is in sync
with the current package.json files.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fadi-george fadi-george merged commit 2ee0fd6 into main May 18, 2026
1 check passed
@fadi-george fadi-george deleted the fg/more-examples branch May 18, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants