Skip to content

Instantly share code, notes, and snippets.

@mikehostetler
Created December 3, 2015 14:30
Show Gist options
  • Save mikehostetler/adc1ad1a021ec8ab53bc to your computer and use it in GitHub Desktop.
Save mikehostetler/adc1ad1a021ec8ab53bc to your computer and use it in GitHub Desktop.
Quick script to clone down and develop on Trails.js
#!/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