Skip to content

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

Open
fadi-george wants to merge 5 commits into
mainfrom
fg/more-examples
Open

feat: add Vue 2/3 and Angular example apps#136
fadi-george wants to merge 5 commits into
mainfrom
fg/more-examples

Conversation

@fadi-george
Copy link
Copy Markdown
Collaborator

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
  • Fix scripts/copy-build-to-outputs.sh to keep bun.lock files in outputs/ while still pruning .angular/ cache dirs and stray *.tgz tarballs

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
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.

1 participant