A lot of testing tools need to spin up servers, build code in travis like sandboxes etc.
It might be helpful to expose our commands as node modules so they can be required and executed from inside js files.
example usecase
strawman:
import { build, watch } from 'preact-cli';
build(dir, options).then( ... )
watch(dir, { ...options, onBuild }).then( ... )
it would also be awesome to add an option to use an existing webpack virtual FS so people could compile production builds to an in-memory filesystem for testing purposes.
Most helpful comment
strawman:
it would also be awesome to add an option to use an existing webpack virtual FS so people could compile production builds to an in-memory filesystem for testing purposes.