haste-demo
v1.0.5
Published
A CLI tool for building and deploying projects
Readme
Haste CLI Tool
A fast and efficient CLI tool for building and deploying projects.
Installation
Local Development
# Install dependencies
yarn install
# Test the CLI locally
yarn start --helpGlobal Installation
# Install globally using yarn
yarn global add .
# Or link for development
yarn linkUsage
Build Command
# Basic build
haste build
# Build with specific environment
haste build --env production
# Build with watch mode
haste build --watchDeploy Command
# Basic deploy
haste deploy
# Deploy to specific environment
haste deploy --env staging
# Force deployment
haste deploy --forceAvailable Commands
haste build- Build the projecthaste deploy- Deploy the projecthaste --help- Show help informationhaste --version- Show version information
Development
Project Structure
haste/
├── bin/
│ └── haste.js # Main CLI entry point
├── lib/
│ └── commands/
│ ├── build.js # Build command implementation
│ └── deploy.js # Deploy command implementation
├── package.json
└── README.mdAdding New Commands
- Create a new file in
lib/commands/ - Export an
executefunction - Add the command to
bin/haste.js
Dependencies
- commander - Command-line argument parsing
- chalk - Terminal string styling
License
MIT
