1
1
mirror of https://github.com/c8r/x0.git synced 2024-08-17 01:10:32 +03:00

Add colors to help

This commit is contained in:
Brent Jackson 2018-05-26 11:26:09 -04:00
parent 281002e1ec
commit 66bcabb073

16
cli.js
View File

@ -15,26 +15,26 @@ const pkg = readPkg().pkg
log.name = 'x0'
const cli = meow(`
Usage
${chalk.gray('Usage')}
Dev Server
${chalk.gray('Dev Server')}
x0 pages
${chalk.cyan('x0 pages')}
Build
${chalk.gray('Build')}
x0 build pages
${chalk.cyan('x0 build pages')}
Options
${chalk.gray('Options')}
--webpack Path to webpack config file
Dev Server
${chalk.gray('Dev Server')}
-o --open Open dev server in default browser
-p --port Port for dev server
Build
${chalk.gray('Build')}
-d --out-dir Output directory (default dist)
-s --static Output static HTML without JS bundle