UNPKG

micro-dev

Version:

This command line interface provides a belt full of tools that make building microservices using [micro](https://github.com/vercel/micro) a breeze! It's only meant to be used in development, **not in production** (that's where [micro](https://github.com/v

26 lines (21 loc) 935 B
// Packages const {green: g} = require('chalk'); module.exports = () => { const usage = `\n Usage: ${g('micro-dev')} [path] [options] Options: ${g('-p, --port <n>')} Port to listen on (defaults to 3000) ${g('-H, --host')} The host on which micro will run ${g('-d, --dotenv')} Custom path for a .env file (relative to cwd) ${g('-c, --cold')} Disable hot reloading ${g('-w, --watch <dir>')} A directory to watch in addition to [path] ${g('-L, --poll')} Poll for code changes rather than using events ${g( '-l, --limit' )} Size limit for JSON parsing (string like '1mb', or bytes) ${g('-i --ignore <dir>')} Ignore watching a file, directory, or glob ${g('-s, --silent')} Disable requests log ${g('-v, --version')} Output the version number ${g('-h, --help')} Show this usage information `; return usage; };