UNPKG

paranormal

Version:
21 lines (17 loc) 491 B
'use strict'; exports.__esModule = true; exports.build = build; exports.serve = serve; const path = require('path'); const spawn = require('spawndamnit'); const PARCEL_BIN = require.resolve('parcel-bundler/bin/cli.js'); async function build(entry, outDir) { await spawn(PARCEL_BIN, ['build', entry, '--out-dir', outDir], { stdio: 'inherit' }); } async function serve(entry, outDir) { await spawn(PARCEL_BIN, ['serve', entry, '--out-dir', outDir], { stdio: 'inherit' }); }