A CLI tool to generate .cursorrules files for your projects.
pnpm add -D cursorruler
npx cursorruler -i '.js' -i '.json' -e '.ts' -e '.tsx'
-i, --include <patterns...>
: File patterns to include-e, --exclude <patterns...>
: File patterns to exclude-w, --watch
: Watch for file changes--no-gitignore
: Ignore .gitignore patterns
You can customize the behavior by creating a .cursorruler.json
file in your project root:
{
"minifiers": {
".js": {
"ecma": 2020,
"mangle": true,
"compress": {
"drop_console": true
}
}
}
}
The following file types are supported for minification:
- JavaScript (.js)
- TypeScript (.ts)
- TypeScript React (.tsx)
- JSON (.json)
- Markdown (.md)
- Text (.txt)
- Clone the repository
- Install dependencies:
pnpm install
- Run tests:
pnpm test
ISC