@editor-x/rollup-plugin-userscript
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

rollup-plugin-userscript

A Rollup plugin for defining userscript metadata blocks, suitable for use with Tampermonkey, Violentmonkey, and other userscript managers.

Features

  • Define userscript metadata blocks in your Rollup build
  • Automatically generates the @grant metadata based on the GM API functions used
  • Compatible with Tampermonkey, Violentmonkey, and more

Installation

npm install @editor-x/rollup-plugin-userscript --save-dev

Usage

Add the plugin to your rollup.config.js:

import userscript from '@editor-x/rollup-plugin-userscript';

export default {
  // ...your config
  plugins: [
    userscript({
      // plugin options
    })
  ]
};

License

MIT

Package Sidebar

Install

npm i @editor-x/rollup-plugin-userscript

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

62.3 kB

Total Files

10

Last publish

Collaborators

  • r0den