Skip to content

Starter code for creating a Rollup plugin

License

Notifications You must be signed in to change notification settings

rollup/rollup-starter-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-starter-plugin

This repo contains bare-bones code for creating a Rollup plugin.

Getting started

Clone this repository and install its dependencies:

npx degit https://github.com/rollup/rollup-starter-plugin my-plugin
cd my-plugin
npm install
  1. Edit package.json

  2. 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
  1. Add your preferred test framework and implement tests

See conventions for writing Rollup plugins.

About

Starter code for creating a Rollup plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •