Skip to content

Commit

Permalink
Added -lock.json to specific exclusions, and updated README to match
Browse files Browse the repository at this point in the history
  • Loading branch information
btfranklin committed Jun 30, 2024
1 parent 545820d commit 93dee73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Coderoller is a Python utility that flattens a source code repository into a sin
- **Flattens source code repositories** into a single markdown file.
- **Supports multiple file types** including `.py`, `.js`, `.jsx`, `.ts`, `.tsx`, `.swift`, `.go`, `.java`, `.c`, `.cpp`, `.h`, `.hpp`, `.cs`, `.lua`, `.rb`, `.php`, `.pl`, `.html`, `.css`, `.json`, `.toml`, `.md`, `.yaml`, `.yml`, `.conf`, `.ini`, and `.sh`.
- **Automatically includes README** files if present, placing it at the start of the flattened file.
- **Excludes hidden files and directories** (those starting with a dot), specific directories (`build`, `dist`, `node_modules`, `__pycache__`), specific files (`*.flat.md`, `*.lock`, `*.hidden`), and any paths specified in `.gitignore`.
- **Excludes hidden files and directories** (those starting with a dot), specific directories (`build`, `dist`, `node_modules`, `__pycache__`), specific files (lockfiles, hidden files, other flattened files, etc.), and any paths specified in `.gitignore`.
- **Supports flattening directly from Git URLs** even if the repository is not cloned locally.

## Installation
Expand Down
1 change: 1 addition & 0 deletions src/coderoller/source_repo_flattener.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def should_include_path(file_path: str, spec: pathspec.PathSpec) -> bool:
"__pycache__",
".flat.md",
".lock",
"-lock.json",
".hidden",
]

Expand Down

0 comments on commit 93dee73

Please sign in to comment.