mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-29 13:58:02 +03:00
18 lines
285 B
JavaScript
Executable File
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)
|
|
})
|