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
starterPluginfunction - 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.