rollup-plugin-commit

0.0.3 • Public • Published

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'
      ]
    })
  ]
  ...

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i rollup-plugin-commit

      Weekly Downloads

      0

      Version

      0.0.3

      License

      MIT

      Unpacked Size

      2.4 kB

      Total Files

      3

      Last publish

      Collaborators

      • rart