mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-12-01 13:32:13 +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)
|
|
})
|