This repo contains bare-bones code for creating a Rollup plugin.
Clone this repository and install its dependencies:
npx degit https://github.com/rollup/rollup-starter-plugin my-plugin
cd my-plugin
npm install
-
Edit
package.json
-
Edit
src/index.js
- rename the
starterPlugin
function - change
name: 'starter-plugin'
to your plugin name - implement or delete the function stubs. See hooks guide
- Add your preferred test framework and implement tests
See conventions for writing Rollup plugins.