Skip to content

violentmonkey/generator-userscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@violentmonkey/generator-userscript

NPM

Yeoman generator to create a workspace for userscript easily.

Prerequisites

  • Node.js >= 12

Features

  • Modern syntax
  • CSS
    • CSS modules (only applied for .module.css files)
    • tailwindcss is enabled by default, but only for CSS, don't use it in JavaScript or templates

Read this for more details.

Usage

$ mkdir my-script
$ cd my-script

# Remove npx cache if needed
$ NPM_CACHE=`npm config get cache` # -> `~/.npm`
$ rm -rf $NPM_CACHE/_npx

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

About

A yeoman generator to create a userscript project rapidly

Resources

Stars

Watchers

Forks

Packages