Home / PUBLISH-NOW

Ready to Publish! ๐Ÿš€

Status: โœ… Ready

Everything is prepared and committed. Now you just need to:

1. Login to npm (if not already)

npm login

Enter your npm credentials when prompted.

2. Publish to npm

npm run changeset:publish

This will:

  • โœ… Sync components (already done, but will verify)
  • โœ… Publish @larcjs/core@3.0.1 to npm
  • โœ… Create git tags
  • โœ… Push tags to GitHub (you'll need to run git push --follow-tags after)

3. Push to GitHub

git push --follow-tags

This pushes the commit and version tags to GitHub.


What's Being Published

@larcjs/core@3.0.1 (from 2.0.0) New Features:
  • 130 UI components bundled in /components/
  • Zero-config setup with one script tag
  • Components auto-load without configuration
Files:
  • pan.mjs (autoloader - updated)
  • pan-bus.mjs, pan-client.mjs, pan-storage.mjs
  • components/ (NEW! 130 component files)

After Publishing

Verify on npm

# Check package exists
npm view @larcjs/core@3.0.1

# Test CDN (wait ~5 min for CDN sync)
curl -I https://cdn.jsdelivr.net/npm/@larcjs/core@3.0.1/pan.mjs
curl -I https://cdn.jsdelivr.net/npm/@larcjs/core@3.0.1/components/pan-card.mjs

Test the One-Liner

Create a test HTML file:

<!DOCTYPE html>
<html>
<head>
  <script type="module" src="https://cdn.jsdelivr.net/npm/@larcjs/core@3.0.1/pan.mjs"></script>
</head>
<body>
  <pan-card>
    <h1>Success! ๐ŸŽ‰</h1>
    <p>Zero config, one line, it just works!</p>
  </pan-card>
</body>
</html>

Open in browser - pan-card should render!


Rollback (if needed)

Within 72 hours of publishing:

npm unpublish @larcjs/core@3.0.1

Or publish a patch fix:

cd packages/core
npm version patch
npm publish

Summary

Current Status:
  • โœ… Version bumped (2.0.0 โ†’ 2.1.0)
  • โœ… CHANGELOG generated
  • โœ… Components synced (130 files)
  • โœ… Changes committed to git
  • โณ Waiting: npm login + publish
Commands to run:
npm login                      # Login to npm
npm run changeset:publish      # Publish packages
git push --follow-tags         # Push to GitHub

That's it! ๐Ÿš€