Mashup allow you to blend two or more git repositories into one project.
Mashup allows you to blend two or more git repositories into one project.
Install this globally in order to access the
mashup command anywhere on your system.
npm install -g mashup
Getting started with
mashup is pretty straight forward. There is one core command you should be aware of
mashup generate or simply
mashup will guide you through a series of prompts allowing you to pull multiple git repos and combine them into one project.
mashup generate or
mashup will present you with the following prompts:
A registry is beneficial when you repeatedly need to blend the same repos or would like to automate the creation of projects. For instance, one repo can be the HTML 5 Boilerplate while the other may contain your grunt configuration. A registry is just a json file uploaded to a server which follows the format below:
Once a registry has been added to
mashup projects can be generated from the registry using the following command
mashup generate [registry:template]. Power users can pass in the remote git with
mashup generate [registry:template] --remote [git] or skip the remote git prompt entirely with
mashup generate [registry:template] --no-remote.
mashup register you will be guided through a series of prompts allowing you to add a new registry. Power users can bypass the prompts with
mashup register [name] [jsonURL].
Generate with prompts
mashupmashup generatemashup -g
Generate from registry with remote git url prompt
mashup generate registry:template1mashup -g registry:template1
Generate from registry skipping remote git url prompt
mashup generate registry:template1 --no-remote
Generate from registry passing in a remote git url
mashup generate registry:template1 --remote
Add new registry with prompts
mashup registermashup -r
Add new registry bypassing prompts
mashup register myregistrymashup -r myregistry
List available registries
mashup listmashup -l
List available templates within a registry
mashup list myregistrymashup -l myregistry