0.0.3 • Published 3 years ago

rollup-plugin-commit v0.0.3

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

rollup-plugin-commit

npm version

Super simple plugin to commit files to git after the rollup build is done.

  import commit from 'rollup-plugin-commit';
  ...
  plugins: [
    babel({ ... }),
    resolve({ ... }),
    commonjs({ ... }),
    commit({
      // The text to use in the commit message
      message: 'Updates to {file} @ {date} {time}',
      // These paths are passed to the git add/commit commands literally
      targets: [
        // git add ./build/index.html && git commit ./build/index.html -m "..."
        './build/index.html',  
        // git add ./build/index.umd.js && git commit ./build/index.umd.js -m "..."
        './build/index.umd.js'
      ]
    })
  ]
  ...