Skip to content

violentmonkey/generator-userscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@violentmonkey/generator-userscript

NPM

Yeoman generator to create a workspace for userscript easily.

Prerequisites

  • Node.js >= 18

Features

  • TypeScript
  • SolidJS
  • CSS modules (applied for .module.css files)
  • UnoCSS

Read this for more details.

Get Started

First of all, make a new directory for your userscript.

$ mkdir my-script
$ cd my-script

Then follow one of the options below to create the files.

Option 1: npm

Please make sure your npm is up to date because in earlier versions (e.g. 8.12.x) there was a bug that prevented npx from installing the correct dependencies.

$ npm i npm -g

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

Option 2: pnpm

$ pnpm --package github:violentmonkey/generator-userscript --package yo dlx yo @violentmonkey/userscript

About

A yeoman generator to create a userscript project rapidly

Resources

Stars

Watchers

Forks

Packages

No packages published