Lloyd Brookes
8 years ago
2 changed files with 21 additions and 34 deletions
@ -1,14 +1,2 @@ |
|||
#!/usr/bin/env node
|
|||
'use strict' |
|||
const LocalWebServer = require('../') |
|||
const localWebServer = new LocalWebServer() |
|||
try { |
|||
localWebServer.start() |
|||
} catch (err) { |
|||
if (err.code === 'MODULE_NOT_FOUND') { |
|||
console.error(err.message) |
|||
console.error(require('util').inspect(err.attempted, { depth: 6, colors: true })) |
|||
} else { |
|||
console.error(err.stack) |
|||
} |
|||
} |
|||
require('../').run() |
Write
Preview
Loading…
Cancel
Save
Reference in new issue