Monday, June 15, 2015

Grunt , bower, nodejs installation & commands

 

sudo apt-get install --reinstall --install-recommends nodejs
sudo npm install -g grunt
sudo npm install -g grunt-cli
sudo npm install -g bower

# Locate package.json and run : 
 sudo npm install
 
# Locate bower.json and run :
 bower install

# Locate .Gruntfile.js and run : 
 "grunt dev --force" in local
 "grunt build --force" in live


* Commands * Git Submodule , merge , git rm reset / undo

  
git clone <SSH-URL> <directory_name>
git submodule init
git submodule update

# merge branch in master
git checkout master
git merge <branch_name>

# Undo "git rm -r ." command.
git reset HEAD