feat: config file support, internalize deps (23KB → 11KB), Windows fixes#47
Merged
feat: config file support, internalize deps (23KB → 11KB), Windows fixes#47
Conversation
- Run `gitpick` with no args to pick multiple files/folders from a `.gitpick.json` or `.gitpick.jsonc` config in cwd - Each entry follows the same `<url> [target]` CLI syntax - Externalize strip-json-comments for JSONC parsing - Move tests to tests/ dir, output to .test-artifacts/ - Update external.sh to use oxfmt and alphabetical ordering - Update README with config file docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0348267 to
9210b7a
Compare
oxfmt converts single quotes to double quotes, so the sed import rewrites were silently not matching in CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Update all external dependencies to latest commit hashes - Fix sed patterns for oxfmt double quotes - Fix trailing comma handling in JSONC parsing - Config test now verifies all 14 entries individually Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace terminal-link + 6 sub-deps with 1-line OSC 8 escape - Internalize yoctocolors (trimmed to 5 used colors) - Internalize yocto-spinner (trimmed to start/success) - Internalize nano-spawn (trimmed to 3 usage patterns) - Internalize strip-json-comments (with trailing commas built-in) - Remove external/ dir, scripts/external.sh, sync:external - Move .gitpick.jsonc to tests/fixtures.jsonc - Unify test script: build → cli → config Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- nano-spawn.ts, strip-json-comments.ts, yocto-spinner.ts, yoctocolors.ts - bin/utils/ now only contains gitpick's own code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15-line node script replaces system tree command dependency. Works on all platforms with no external deps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The blob target path logic split only on / which failed when Windows backslash paths contained a dot (e.g. .test-artifacts\1). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.gitpick.json/.gitpick.jsonc— rungitpickwith no args to pick multiple files/folders in one command. Each entry follows the same<url> [target]CLI syntaxterminal-link+ 6 sub-deps with 1-line OSC 8 escapeyoctocolors(5 colors),yocto-spinner(start/success),nano-spawn(3 patterns),strip-json-comments(with trailing commas)external/dir,scripts/external.sh,sync:externalworkflowcopyDirpreserves symlinks instead of failingpath.dirnamefor blob targets, split on both/and\tests/cli.sh,tests/config.sh,tests/windows.ps1, cross-platformtests/tree.mjsCloses #43
Test results (98 total)
🤖 Generated with Claude Code