Skip to content

Conversation

@justalever
Copy link
Contributor

Summary

Switch from JSPM/jsDelivr to unpkg as the default CDN provider across all documentation and examples.

Changes

  • importmap.json: Updated all dependency URLs to use unpkg
  • IMPORTMAP.md:
    • Updated Quick Start example to use unpkg
    • Updated self-hosted example to use unpkg
    • Updated version to 1.1.0
    • Kept jsDelivr and JSPM as alternative options
  • README.md:
    • Updated importmap installation to use unpkg
    • Updated CSS CDN URLs to use unpkg
    • Updated version to 1.1.0
  • index.html: Switched demo to bundled build (works locally without CDN wait)

Rationale

unpkg has the fastest CDN propagation time (~1-2 minutes) compared to jsDelivr (5-15 min) and JSPM (5-10 min), making it better for users who want to get started quickly after an npm publish.

Testing

  • All documentation examples use consistent unpkg URLs
  • Alternative CDN providers documented
  • Demo works with bundled build locally

🤖 Generated with Claude Code

justalever and others added 2 commits October 6, 2025 14:43
- Update importmap.json to use unpkg URLs
- Update IMPORTMAP.md with unpkg as primary CDN
- Update README.md with unpkg URLs
- Update demo to use bundled build (works locally)
- Update version references to 1.1.0
- Keep jsDelivr and JSPM as alternative options

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 6, 2025

Deploying railsui-stimulus with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7891bad
Status: ✅  Deploy successful!
Preview URL: https://3f44c42d.railsui-stimulus.pages.dev
Branch Preview URL: https://use-unpkg-cdn.railsui-stimulus.pages.dev

View logs

justalever and others added 2 commits October 6, 2025 14:51
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Switch from bundled build to importmap distribution
- Showcases the exact setup Rails users would use
- All dependencies loaded from unpkg CDN
- Matches documentation examples

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@justalever justalever merged commit 3536a10 into main Oct 6, 2025
2 checks passed
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