Skip to content

🤖 Rollup monkey userscript template with TypeScript

License

Notifications You must be signed in to change notification settings

synthlace/synth_userscript_template

Repository files navigation

@synthlace/synth_userscript_template

Prerequisites

  • Node.js >= 18
  • pnpm >= 8

Get Started

# Install pnpm
$ npm i -g pnpm

# Install and patch packages
$ pnpm install

# Build
$ pnpm build

Output

Build produces two bundles inside dist directory:

  • bundle.js - comments and identifiers as is
  • bundle.min.js - produces minified one-liner with no comments

You can use any.

Meta and Banner

Template uses metablock generator rollup-plugin-userscript-metablock package with a patch to support the .cjs extension. Banner can be customized by changing the banner inside rollup.config.ts, example:

const banner = '\n/* any banner you want */\n'

About

🤖 Rollup monkey userscript template with TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published