Skip to content

Using Node.js async to Run in Parallel All Necessary GIT/System Bootstrap Commands to Setup Local Box for Development.

Notifications You must be signed in to change notification settings

ot-sean-meyer/GITLatest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GITLatest

Using Node.js async to Run in Parallel All Necessary GIT/System Bootstrap Commands to Setup Local Box for Development.

Motivation

  • I want to setup a box for development from scratch with one script
  • I want to git pull upstream master or git pull rebase without having 5 Powershell or GIT Bash windows open.
  • I want the command to run against all necessary projects in parallel
  • I want the flexibility to run cmd for one project or for all projects
  • I want a quick way to run rake bootstrap for all projects in parallel
  • I don't want to be afraid to reboot my box anymore fearing things won't work.

Setup

  • Install node.js
  • Install Growl for Windows *Note: THIS IS OPTIONAL
  • Make sure all projects are under one directory Ex: Projects\
  • cd ProjectsFolderYouChoose
  • git clone git@github.com:ot-adam-moon/GITLatest.git
  • npm install .
  • grunt *NOTE: this will run git status for all projects

How do I control the project list?

  • Open gruntfile.coffee
  • 2nd line projects = [...]
  • edit array to control the Project List

Build Projects from Scratch

  • create a new directory where you want all projects to be under
  • cd directoryYouChose
  • grunt scratch

What does this do? * stops all current webs running * uninstall all services installed for the projects listed * delete all folders that match each project name * git clone for all projects * runs run_me_first.bat for each project

What if I only want to run a command for one project?

add an argument to your command indicating the project you want

Ex: grunt scratch:ProjectName grunt st:ProjectName

Command List

grunt command what it does
grunt git status
grunt default git status
grunt st git status
grunt pum git submodule update, git pull upstream master
grunt pr git submodule update, git pull rebase
grunt clone git clone
grunt clean git clean
grunt com git checkout master
grunt su git submodule update
grunt rh git reset head --hard
grunt rmf run-me-first.bat
grunt rboot rake bootstrap
grunt rsql rake sql
grunt db rebuild-db.bat
grunt web webutil.bat all
grunt webstop webutil.bat stop
grunt svc svcutil.bat start
grunt svcu svcutil.bat u
grunt svci svcutil.bat i
grunt up webutil.bat all, svcutil.bat start
grunt sanity git submodule update, git pull upstream master, run-me-first.bat
grunt scratch webutil.bat stop, svcutil.bat u, RD "%project%" /S /Q, git clone, run-me-first.bat

About

Using Node.js async to Run in Parallel All Necessary GIT/System Bootstrap Commands to Setup Local Box for Development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published