Dump current directory structure/files into stdout for Claude 3.5 Project.
npm install dumprepo[glob pattern]:https://github.com/isaacs/node-glob/tree/v11.0.0?tab=readme-ov-file#glob-primer
Please use node v18, or higher.
``bash`
npx dumprepo
dumprepo outputs the project's source code as a single bundle to stdout. dumprepo dumps text files only.
`
//////////////// Project Structure ////////////////
{list of files with directory structure}
//////////////// FILE: {filename} ////////////////
{file content}
...
`
The command dumprepo generates a configuration file dumprepo.json on its first run.`json`
{
"projectStructure": {
"include": ["*/"],
"exclude": ["node_modules/**", "dumprepo.json"]
},
"textFiles": {
"include": ["*/"],
"exclude": ["node_modules/*", "dumprepo.json", ".svg", "package-lock.json"]
},
"dot": false
}
* projectStructure: [glob pattern] settings for files to include or exclude in the file list displayed in the Project Structure section.textFiles
* : [glob pattern] settings to determine which files contents should be output.dot
* : false` ::= Ignores files start with dot.