Konfiguration
Schnellstart
Konfigurationsdatei erstellen:
bash
repomix --initKonfigurationsdatei
repomix.config.json:
json
{
"output": {
"filePath": "repomix-output.xml",
"style": "xml",
"headerText": "Benutzerdefinierter Kopfzeilentext",
"instructionFilePath": "repomix-instruction.md",
"fileSummary": true,
"directoryStructure": true,
"removeComments": false,
"removeEmptyLines": false,
"topFilesLength": 5,
"showLineNumbers": false,
"copyToClipboard": false,
"includeEmptyDirectories": false
},
"include": ["**/*"],
"ignore": {
"useGitignore": true,
"useDefaultPatterns": true,
"customPatterns": ["tmp/", "*.log"]
},
"security": {
"enableSecurityCheck": true
}
}Globale Konfiguration
Globale Konfiguration erstellen:
bash
repomix --init --globalSpeicherort:
- Windows:
%LOCALAPPDATA%\Repomix\repomix.config.json - macOS/Linux:
~/.config/repomix/repomix.config.json
Ignorier-Muster
Prioritätsreihenfolge:
- CLI-Optionen (
--ignore) - .repomixignore
- .gitignore
- Standardmuster
.repomixignore Beispiel:
text
# Cache-Verzeichnisse
.cache/
tmp/
# Build-Ausgaben
dist/
build/
# Protokolle
*.logStandard-Ignorier-Muster
Standardmäßig enthaltene häufige Muster:
text
node_modules/**
.git/**
coverage/**
dist/**Vollständige Liste: defaultIgnore.ts