1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-09-20 19:37:27 +03:00

Update ok-cli

This commit is contained in:
Brent Jackson 2018-07-29 14:38:37 -04:00
parent 3af38d05fe
commit 5c79243408
3 changed files with 14 additions and 4 deletions

View File

@ -6,7 +6,7 @@
**Beta**
```sh
npm i mdx-deck
npm i -D mdx-deck
```
- :memo: Write presentations in markdown
@ -34,10 +34,19 @@ import Demo from './components/Demo'
# The end
````
Run the CLI pointing to the `.mdx` file to start the dev server:
Add a run script to your `package.json` with the mdx-deck CLI
pointing to the `.mdx` file to start the dev server:
```json
"scripts": {
"start": "mdx-deck deck.mdx"
}
```
Start the dev server:
```sh
mdx-deck deck.mdx
npm start
```
## Usage

1
cli.js
View File

@ -42,6 +42,7 @@ const getConfig = conf => {
]
}
]
return conf
}

View File

@ -23,7 +23,7 @@
"gray-matter": "^4.0.1",
"lodash.throttle": "^4.1.1",
"meow": "^5.0.0",
"ok-cli": "^3.0.1",
"ok-cli": "^3.0.2",
"pkg-conf": "^2.1.0",
"prop-types": "^15.6.2",
"react-dev-utils": "^5.0.1",