1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-12-01 13:32:13 +03:00
mdx-deck/cli.js
Brent Jackson c9157a37d9 Init
2018-07-28 14:21:36 -04:00

18 lines
285 B
JavaScript
Executable File

#!/usr/bin/env node
const open = require('react-dev-utils/openBrowser')
const dev = require('./lib/dev')
const opts = {
}
dev(opts)
.then(res => {
const url = 'http://localhost:' + res.port
open(url)
console.log(url)
})
.catch(err => {
console.error(err)
})