Using Node.js async to Run in Parallel All Necessary GIT/System Bootstrap Commands to Setup Local Box for Development.
- I want to setup a box for development from scratch with one script
- I want to
git pull upstream master
orgit 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.
- 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 rungit status
for all projects
- Open gruntfile.coffee
- 2nd line
projects = [...]
- edit array to control the Project List
- 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
add an argument to your command indicating the project you want
Ex: grunt scratch:ProjectName
grunt st:ProjectName
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 |