UNPKG

oxe

Version:

A mighty tiny web components framework/library

30 lines (24 loc) 717 B
import { Watch, Spawn, Execute, Press } from './packer.js'; console.log(` b: builds e: exits `); const build = async function () { console.log('build: start'); // await Execute('npx tsc -p tsconfig.dev.json'); await Execute('npx rollup -c rollup.dev.js'); // await Execute('cp web/assets/oxe.js ../qapi/web/assets/oxe.js'); console.log('build: end'); }; const exit = async function () { console.log('exit: start'); child.kill(); console.log('exit: end'); process.exit(); }; await Watch('./src', () => build()); await Press('b', () => build()); await Press('c', () => exit()); await Press('e', () => exit()); await build(); const child = await Spawn('muleify -s web');