0.1.12 • Published 3 years ago

rollup-plugin-shell-cycles v0.1.12

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

rollup-plugin-shell-cycles

Execute shell command(s) sequentially or Synchronously at different lifecycle hooks.

npm i rollup-plugin-shell-cycles -D

Examples

// rollup.config.js
import shell from 'rollup-plugin-shell-cycles'

export default {
  entry: 'src/app.js',
  dest: 'public/app.js',
  plugins: [
    shell({
      buildStart: {
        commands: ['echo run my script'],
      },
      buildEnd: {
        commands: ['echo end my script'],
      },
      closeWatcher: {
        commands: ['echo close watcher'],
      },
      watchChange: {
        commands: ['echo watch change'],
      },
      moduleParsed: {
        commands: ['echo moduleParsed'],
      },
      generateBundle: {
        commands: ['echo generateBundle'],
      },
      renderError: {
        commands: ['echo render error'],
      },
      renderStart: {
        commands: ['echo render start'],
      },
      writeBundle: {
        commands: ['echo write bundle'],
      }
    })
  ]
}
0.1.12

3 years ago

0.1.1

3 years ago