Skip to content

feat: add interactive init command and alpha release system#4

Merged
timoconnellaus merged 1 commit intomasterfrom
feature/cli-setup
Jul 9, 2025
Merged

feat: add interactive init command and alpha release system#4
timoconnellaus merged 1 commit intomasterfrom
feature/cli-setup

Conversation

@timoconnellaus
Copy link
Owner

Summary

  • Interactive Init Command: New --init flag with inquirer for easy setup
  • 🎯 Predefined Hooks: Select from logging, security, and announcement hooks
  • 🔧 ES Module Support: Auto-detects "type": "module" and compiles accordingly
  • 🧪 Alpha Release System: Complete alpha versioning with GitHub workflows
  • 🚫 Simplified Architecture: Removed user hooks (now project/local only)
  • 🛠️ Development Tools: Added --alternate-dist-path for testing

Features Added

Interactive Init Command

npx @timoaus/define-claude-code-hooks --init
  • Choose between project or local hooks
  • Select from predefined hooks with descriptions
  • Auto-installs package and sets up scripts
  • Runs setup automatically

Alpha Release System

  • New npm scripts: release:alpha, release:alpha:patch, etc.
  • GitHub workflow for automated alpha publishing
  • Publishes to @alpha tag on npm
  • Creates pre-releases on GitHub

Improved Architecture

  • Removed user hooks complexity (focused on project/local only)
  • Better ES module detection and compilation
  • Enhanced error handling and user feedback
  • Development testing tools

Test plan

  • Test init command with both project and local hooks
  • Verify ES module compilation works correctly
  • Test alpha release scripts
  • Validate predefined hooks installation
  • Check documentation updates

🤖 Generated with Claude Code

- Add --init command with inquirer for interactive setup
- Support project vs local hooks selection
- Include predefined hooks (logging, security, announcements)
- Auto-detect and compile for ES modules vs CommonJS
- Add --alternate-dist-path for development testing
- Remove user hooks functionality (project/local only)
- Add alpha release scripts and GitHub workflow
- Update documentation for new features

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

Co-Authored-By: Claude <noreply@anthropic.com>
@timoconnellaus timoconnellaus merged commit f5f4d0c into master Jul 9, 2025
1 check 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.

1 participant