cmpl
no deps, no operations, no vowels
just a tiny framework to apply transformations and renaming to single files
or files in a folder. You know because gulp is to old and stuff...
this one makes 0 assumptions on the content/type of a file and by default
just copies over the entry to outDir.
I've build this for cases where a big and complex compiler is just overkill
and if we think this misses a feature we're probably better of using a real
project like esbuild, microbundle or webpack.
Install
npm install cmpl
Usage
import { cmpl, wtch, CmplOptions } from 'cmpl';
const options: CmplOptions = {
entry: __dirname + '/src',
processors: [
{
outDir: __dirname + '/dist',
},
],
};
const mnfst = await cmpl(options);
console.log(mnfst);
const ac = new AbortController();
for await (const mnfst of wtch({
signal: ac.signal,
...options,
})) {
console.log(mnfst);
}