JSPM

  • Created
  • Published
  • Downloads 1632
  • Score
    100M100P100Q103352F
  • License MIT

A CLI tool for building and deploying projects

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 --help

Global Installation

# Install globally using yarn
yarn global add .

# Or link for development
yarn link

Usage

Build Command

# Basic build
haste build

# Build with specific environment
haste build --env production

# Build with watch mode
haste build --watch

Deploy Command

# Basic deploy
haste deploy

# Deploy to specific environment
haste deploy --env staging

# Force deployment
haste deploy --force

Available Commands

  • haste build - Build the project
  • haste deploy - Deploy the project
  • haste --help - Show help information
  • haste --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.md

Adding New Commands

  1. Create a new file in lib/commands/
  2. Export an execute function
  3. Add the command to bin/haste.js

Dependencies

  • commander - Command-line argument parsing
  • chalk - Terminal string styling

License

MIT