Skip to content

Latest commit

 

History

History
212 lines (165 loc) · 5.27 KB

File metadata and controls

212 lines (165 loc) · 5.27 KB

Deployment Summary for @hrica/zcatalyst-cli-plugin-react

Package Information

  • Package Name: @hrica/zcatalyst-cli-plugin-react
  • Version: 1.0.0
  • Type: Scoped package (requires --access public on first publish)
  • Fork Of: zcatalyst-cli-plugin-react by Zoho Catalyst Team

What's Ready for Deployment

✅ Code

  • Core functionality implemented (Vite + Webpack adapters)
  • Build tool detection working
  • Environment variable handling
  • Error handling and logging
  • All integration tests passing (40 tests)
  • Backward compatibility maintained

✅ Documentation

  • README.md updated with fork notice
  • CHANGELOG.md with version 1.0.0 details
  • FORK-NOTICE.md explaining the fork
  • DEPLOYMENT.md with full deployment guide
  • QUICK-START-DEPLOY.md for quick reference
  • PRE-PUBLISH-CHECKLIST.md for verification
  • API documentation in docs/
  • Migration guides in docs/

✅ Package Configuration

  • package.json updated with scoped name
  • Version set to 1.0.0
  • Description mentions fork
  • Keywords include original package name
  • publishConfig set to public
  • Repository URLs configured
  • Files array includes necessary files
  • .npmignore excludes test files

✅ Scripts

  • Deployment script for Windows (publish.ps1)
  • Deployment script for Linux/Mac (publish.sh)
  • Pre-publish hooks configured
  • Test scripts working

Quick Deploy Commands

# 1. Login to npm
npm login

# 2. Verify everything
npm test
npm pack --dry-run

# 3. Publish (first time)
npm publish --access public

# 4. Push to git
git push origin main
git push origin --tags

Or Use the Script

Windows:

.\scripts\publish.ps1

Linux/Mac:

chmod +x scripts/publish.sh
./scripts/publish.sh

Post-Deployment Checklist

After publishing, verify:

  1. Package on npm: https://www.npmjs.com/package/@hrica/zcatalyst-cli-plugin-react
  2. Installation works:
    npm install @hr/zcatalyst-cli-plugin-react
  3. Test in a project:
    • Create a Vite project and test
    • Create a Webpack project and test
  4. Documentation accessible: README displays correctly on npm
  5. Git tags pushed: Version tag exists in repository

Important Notes

About the Fork

  • This is a fork of the official Zoho Catalyst plugin
  • Full credit given to original authors
  • Fork notice included in all documentation
  • Not officially affiliated with Zoho
  • Same MIT license as original

First Publish

  • Requires --access public flag for scoped packages
  • Subsequent publishes don't need the flag
  • Can't republish same version number

Version Management

  • Current version: 1.0.0
  • Follows semantic versioning
  • Use npm version to bump versions

Support

Files Included in Package

The following files will be published to npm:

@hr/zcatalyst-cli-plugin-react/
├── lib/                          # All source code
│   ├── index.js
│   ├── adapters/
│   ├── config/
│   ├── detector/
│   └── utils/
├── docs/                         # Documentation
│   ├── api-documentation.md
│   ├── build-tool-detection.md
│   ├── vite-migration-guide.md
│   └── troubleshooting.md
├── README.md                     # Main documentation
├── LICENSE                       # MIT license
├── FORK-NOTICE.md               # Fork information
├── CHANGELOG.md                 # Version history
└── package.json                 # Package metadata

Files Excluded from Package

These files are excluded via .npmignore:

  • tests/ (all test files)
  • .kiro/ (spec files)
  • coverage/ (test coverage)
  • scripts/ (deployment scripts)
  • node_modules/
  • Development configuration files

Testing the Package Locally

Before publishing, test the package:

# Create a tarball
npm pack

# This creates: hr-zcatalyst-cli-plugin-react-1.0.0.tgz

# Test installation from tarball
mkdir test-install
cd test-install
npm init -y
npm install ../hr-zcatalyst-cli-plugin-react-1.0.0.tgz

# Verify it works
node -e "console.log(require('@hr/zcatalyst-cli-plugin-react'))"

Rollback Plan

If something goes wrong:

  1. Deprecate (preferred):

    npm deprecate @hr/zcatalyst-cli-plugin-react@1.0.0 "Issue found, use 1.0.1"
  2. Fix and republish:

    # Fix the issue
    npm version patch
    npm publish --access public
  3. Unpublish (last resort, within 72 hours):

    npm unpublish @hr/zcatalyst-cli-plugin-react@1.0.0

Next Steps After Deployment

  1. ✅ Verify package on npm
  2. ✅ Test installation
  3. ✅ Update any external documentation
  4. ✅ Announce the release
  5. ✅ Monitor for issues
  6. ✅ Respond to user feedback

Contact


Ready to deploy! 🚀

Follow the Quick Deploy Commands above or use the deployment script for a guided process.