Generate .cursorrules files for your projects to enhance LLM-assisted development
npm install cursorrulerA CLI tool to generate .cursorrules files for your projects.
``bash`
pnpm add -D cursorruler
`bash`
npx cursorruler -i '.js' -i '.json' -e '.ts' -e '.tsx'
- -i, --include : File patterns to include-e, --exclude
- : 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:
`json`
{
"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)
1. Clone the repository
2. Install dependencies: pnpm installpnpm test`
3. Run tests:
ISC