rollup-plugin-command
Run commands and call functions when bundles are generated
Installation
npm i -D rollup-plugin-command
Usage
import command from 'rollup-plugin-command';
export default {
plugins: [
command(`node tests.js`, options),
],
};
The options are, of course, optional.
command(require('tests.js'));
command(
[
`npm test`,
require('./scripts/cleanup').someFunc,
],
{ exitOnFail: true }
);
options
interface CommandOptions {
exitOnFail?: boolean;
once?: boolean;
wait?: boolean;
}
I hope you find this package usefull!
License
MIT