Skip to content
This repository was archived by the owner on Mar 27, 2019. It is now read-only.

component {fork,unfork} <component> #625

@johntron

Description

@johntron

I've been working on an enterprise webapp that's used component for about 1.5 years now. I've had to patch 4 or 5 public components to apply fixes or add minor functionality. The process goes like this:

  1. Fork public repo
  2. Update dependent components to use forked repo
  3. Build (installs forked copy)
  4. Replace forked component installed by component with a git clone
  5. Apply changes, build, test, push, create PR
  6. Update dependent components from step 2 to use the latest commit hash from the forked copy
  7. Wait for upstream to merge PR and bump version
  8. Revert dependent components from step 2 to use new upstream version

Maybe there's an easier way, but it would be nice if component helped out here like so:

  • component fork <original-component> that would perform 1-4 (somehow remember the upstream copy)
  • component use-fork <original> <forked-component> for step 6
  • component unfork <original-or-new> for step 8.

Maybe also a list of forked components when component fork is used without a component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions