@gabimoncha/cursor-rules
Version:
A CLI for bootstrapping Cursor rules to a project
61 lines • 1.64 kB
JavaScript
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
export const CURSOR_RULES_GITHUB_URL = "https://github.com/gabimoncha/cursor-rules-cli";
export const CURSOR_RULES_ISSUES_URL = `${CURSOR_RULES_GITHUB_URL}/issues`;
export const TEMPLATE_DIR = join(dirname(fileURLToPath(import.meta.url)), "..", "templates");
const IGNORE_PATTERNS = [
".cursor",
"lib",
"dist",
"build",
"*.log",
"repomix*",
"yarn.lock",
"package-lock.json",
"bun.lockb",
"bun.lock",
"pnpm-lock.yaml",
];
export const REPOMIX_OPTIONS = {
style: "xml",
compress: false,
removeComments: false,
removeEmptyLines: false,
topFilesLength: 5,
includeEmptyDirectories: false,
gitSortByChanges: false,
ignore: IGNORE_PATTERNS.join(","),
};
export const DEFAULT_REPOMIX_CONFIG = {
output: {
filePath: "repomix-output.xml",
style: "xml",
parsableStyle: false,
fileSummary: true,
directoryStructure: true,
removeComments: false,
removeEmptyLines: false,
compress: false,
topFilesLength: 5,
showLineNumbers: false,
copyToClipboard: false,
includeEmptyDirectories: false,
git: {
sortByChanges: false,
sortByChangesMaxCommits: 100,
},
},
include: [],
ignore: {
useGitignore: true,
useDefaultPatterns: true,
customPatterns: IGNORE_PATTERNS,
},
security: {
enableSecurityCheck: true,
},
tokenCount: {
encoding: "o200k_base",
},
};
//# sourceMappingURL=constants.js.map