mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-05 05:29:12 +08:00
14 lines
365 B
JavaScript
14 lines
365 B
JavaScript
|
const path = require('path')
|
||
|
const LiveServer = require('live-server')
|
||
|
|
||
|
const fixturePath = path.join(__dirname, './fixtures/docs')
|
||
|
const args = process.argv.slice(2)
|
||
|
console.log('[e2e tests] : args passed to live server', args)
|
||
|
const params = {
|
||
|
port: args[0] || 3000,
|
||
|
root: args[1] || fixturePath,
|
||
|
open: false
|
||
|
// NoBrowser: true
|
||
|
}
|
||
|
LiveServer.start(params)
|