1.0.0 • Published 1 year ago
rollup-plugin-runner v1.0.0
rollup-plugin-runner
you can run some code after build
Installation
yarn add rollup-plugin-runner -D
// or
npm i rollup-plugin-runner -D
// or
pnpm i rollup-plugin-runner -D
Usage
import runner from 'rollup-plugin-runner'
export default {
plugins: [
// this will search for "AfterFx.exe" in Process, and run `"Path to AfterFx.exe" - r foo.jsx`
runner({
programName: "AfterFx.exe",
cmd: `-r "foo.jsx"`,
}),
// if cmd only, this will run `npm build`
runner({
cmd: `npm build`,
}),
]
}
Why I publish this script
I am using rollup to write AfterEffect script, I need get AfterEffect application path, and run my script
1.0.0
1 year ago