1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-29 13:58:02 +03:00

Adjust cli

This commit is contained in:
Brent Jackson 2018-07-29 16:19:12 -04:00
parent fa6d895a86
commit 1d6deb029b
2 changed files with 7 additions and 4 deletions

10
cli.js
View File

@ -50,13 +50,15 @@ const getConfig = conf => {
}
const cli = meow(`
Usage
${chalk.magenta('[mdx-deck]')}
$ mdx-deck deck.mdx
${chalk.gray('Usage')}
$ mdx-deck build deck.mdx
$ ${chalk.magenta('mdx-deck deck.mdx')}
Options
$ ${chalk.magenta('mdx-deck build deck.mdx')}
${chalk.gray('Options')}
-p --port Dev server port

View File

@ -9,6 +9,7 @@
"scripts": {
"prepare": "babel src -d dist",
"start": "./cli.js docs/index.mdx -p 8989",
"help": "./cli.js",
"build": "./cli.js build docs/index.mdx -d site"
},
"keywords": [],