Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add include functionality and enhance file filtering with glob support #30

Merged
merged 7 commits into from
Aug 3, 2024

Conversation

yamadashy
Copy link
Owner

@yamadashy yamadashy commented Aug 3, 2024

Thanks to @IsaacSante for the initial sketch of this feature!

What's New

  1. Include Functionality: New option to specify files to include in the packed output using glob patterns.

CLI Usage

repopack --include "src/**/*.ts,**/*.md"

Note: Include and ignore patterns are comma-separated in the CLI.

Configuration Example

{
  "include": ["src/**/*.js", "**/*.md"],
  "ignore": {
    "customPatterns": ["*.test.js", "tmp/"]
  }
}

Key Points:

  • New include patterns use glob syntax (e.g., **/*.md to match all markdown files in any directory)
  • Existing ignore patterns continue to use .gitignore syntax (unchanged from previous versions)
  • Combining include (glob) and ignore (.gitignore) patterns allows for powerful and familiar file selection

This enhancement adds glob-based include capabilities while maintaining the familiar .gitignore-style ignore patterns, giving users more control and flexibility in selecting files for packing.

@yamadashy yamadashy force-pushed the feature/include branch 11 times, most recently from 393c868 to 6444792 Compare August 3, 2024 17:35
@yamadashy yamadashy merged commit 111be6e into main Aug 3, 2024
20 checks passed
@yamadashy yamadashy deleted the feature/include branch August 3, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants