@violentmonkey/generator-userscript

Build a userscript with rollup

Usage no npm install needed!

<script type="module">
  import violentmonkeyGeneratorUserscript from 'https://cdn.skypack.dev/@violentmonkey/generator-userscript';
</script>

README

@violentmonkey/generator-userscript

NPM

Yeoman generator to create a workspace for userscript easily.

Node.js v10.0+ is required.

Features

  • Modern syntax
  • CSS
    • CSSNext powered by PreCSS
    • CSS modules (only applied for .module.css files)

Usage

# Use the latest version from git
$ npx -p https://github.com/violentmonkey/generator-userscript.git -p yo yo @violentmonkey/userscript

# Use the lastest released version from NPM
$ npx -p @violentmonkey/generator-userscript -p yo yo @violentmonkey/userscript