Found a feature you want? Try moving it with Portsmith
Описание и применение
Portsmith позволяет разработчикам извлекать и объединять функции JavaScript/TypeScript между репозиториями, создавая проверяемый патч, при этом исходные репозитории остаются неизменными.
Задача
Reuse focused JavaScript/TypeScript features across multiple repositories without duplicating code.
Результат
Portsmith enables developers to extract and consolidate features across repositories, producing a reviewable patch while keeping original codebases intact.
Рабочий процесс
- Identify the feature to reuse
- Run Portsmith with the command
npx --yes --package=portsmith-workbench@alpha portsmith-demo(or a custom command) - Portsmith prepares changes in a temporary copy of the target repository
- Declared behavior checks are executed to ensure feature integrity
- A patch file is exported for review
- Apply the patch to the original repository if approved
Доказательства
I built Portsmith to help reuse focused JS/TS features across repositories.
It prepares changes in a copy, runs declared behavior checks and exports a patch you can review.
Your original repos stay unchanged.
- Дата записи: 2026-10-14T14:41:23.119Z