LabelWeaver
LabelWeaver is a gem to help developing whitelabel applications of an existing code base.
It does so by automatically merging the base code into the whitelabel code, leading to only the changed files being part of a new repository or branch.
Installation
gem install label_weaver
Setting up a new whitelabel project
Developing a whitelabel project
Starting local development
label_weaver develop --start
This command will perform the following actions:
- Run any
before_start
hooks - Clone or check out the base repository
- Copy all files from the base repository to the whitelabel project that do not already exist
- Merge configured files
- Run any
after_start
hooks
Please note that the gem will inform you about files with a newer version in the base repository. This could mean that you have to update them in your whitelabel project as well to ensure compatibility.
Stopping local development
label_weaver develop --stop
This command will perform the following actions:
- Run any
before_start
hooks - Restore all files that were automatically created through merging
- Remove all files from the project that do not differ from the base project
- Run any
after_start
hooks
You should be left with only the changed files in your repository now.