Package Exports
- @mono-labs/cli
- @mono-labs/cli/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mono-labs/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Mono 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