@violentmonkey/generator-userscript
v0.1.0
Published
Build a userscript with rollup
Downloads
4
Readme
@violentmonkey/generator-userscript
Yeoman generator to create a workspace for userscript easily.
Node.js v10.0+ is required.
Features
- Modern syntax
- JavaScript ESNext or TypeScript
- JSX for DOM powered by @violentmonkey/dom
- 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