mirror of
https://github.com/yamadashy/repomix.git
synced 2025-06-11 00:25:54 +03:00
feat: generate schema in both version-specific and latest directories
Co-Authored-By: Kazuki Yamada <koukun0120@gmail.com>
This commit is contained in:
@@ -37,7 +37,13 @@ const generateSchema = async () => {
|
||||
const versionedOutputPath = path.resolve(versionedOutputDir, 'schema.json');
|
||||
await fs.writeFile(versionedOutputPath, JSON.stringify(schemaWithMeta, null, 2), 'utf-8');
|
||||
|
||||
const latestOutputDir = path.resolve(baseOutputDir, 'latest');
|
||||
await fs.mkdir(latestOutputDir, { recursive: true });
|
||||
const latestOutputPath = path.resolve(latestOutputDir, 'schema.json');
|
||||
await fs.writeFile(latestOutputPath, JSON.stringify(schemaWithMeta, null, 2), 'utf-8');
|
||||
|
||||
console.log(`Schema generated at ${versionedOutputPath}`);
|
||||
console.log(`Schema also generated at ${latestOutputPath}`);
|
||||
};
|
||||
|
||||
generateSchema().catch(console.error);
|
||||
|
||||
134
website/client/src/public/schemas/latest/schema.json
Normal file
134
website/client/src/public/schemas/latest/schema.json
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"input": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"maxFileSize": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"output": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filePath": {
|
||||
"type": "string"
|
||||
},
|
||||
"style": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"xml",
|
||||
"markdown",
|
||||
"plain"
|
||||
]
|
||||
},
|
||||
"parsableStyle": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"headerText": {
|
||||
"type": "string"
|
||||
},
|
||||
"instructionFilePath": {
|
||||
"type": "string"
|
||||
},
|
||||
"fileSummary": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"directoryStructure": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"files": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"removeComments": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"removeEmptyLines": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"compress": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"topFilesLength": {
|
||||
"type": "number"
|
||||
},
|
||||
"showLineNumbers": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"copyToClipboard": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"includeEmptyDirectories": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"git": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sortByChanges": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"sortByChangesMaxCommits": {
|
||||
"type": "number"
|
||||
},
|
||||
"includeDiffs": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"include": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"ignore": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"useGitignore": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"useDefaultPatterns": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"customPatterns": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"security": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enableSecurityCheck": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"tokenCount": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"encoding": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"title": "Repomix Configuration",
|
||||
"description": "Schema for repomix.config.json configuration file"
|
||||
}
|
||||
Reference in New Issue
Block a user