Skip to content

A yeoman generator to create a userscript project rapidly

Notifications You must be signed in to change notification settings

JenieX/generator-userscript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@violentmonkey/generator-userscript

NPM

Yeoman generator to create a workspace for userscript easily.

Prerequisites

  • Node.js >= 18

Features

  • Modern syntax
  • CSS
    • CSS modules (only applied for .module.css files)
    • UnoCSS is enabled by default

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

Languages

  • JavaScript 84.5%
  • TypeScript 11.4%
  • CSS 3.3%
  • Shell 0.8%