Created
December 3, 2015 14:30
-
-
Save mikehostetler/adc1ad1a021ec8ab53bc to your computer and use it in GitHub Desktop.
Quick script to clone down and develop on Trails.js
This file contains 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
#!/bin/bash | |
# Quick script to clone all necessary Trails repositories for local development | |
# Prereq | |
# * Access to all repo's | |
for repo in trails \ | |
eslint-config-trails \ | |
trails-example-app \ | |
trailpack-core \ | |
trailpack-router \ | |
trailpack-hapi \ | |
trailpack-repl \ | |
trailpack-fixtures \ | |
trailpack-realtime \ | |
trailpack-microservices \ | |
trailpack-docs \ | |
trailpack-waterline \ | |
trailpack-swagger \ | |
trailpack-webpack \ | |
trailpack-express4 \ | |
trailsjs.github.io \ | |
generator-trails \ | |
generator-node \ | |
breadcrumbs \ | |
blaze \ | |
trailmix; do | |
if [ -d "$repo" ]; then | |
# Repo exists, update it | |
cd $repo/; | |
git pull; | |
npm link; | |
cd ..; | |
else | |
# New Repo, clone it down | |
git clone [email protected]:trailsjs/$repo.git; | |
cd $repo/; | |
npm link; | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment