Skip to content

Commit

Permalink
Install deps automatically when running 'clone'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanjudis committed Aug 26, 2019
1 parent b6403d5 commit 9067f52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aliases.zsh
Expand Up @@ -38,7 +38,10 @@ alias dnm='rm -rf node_modules && npm i'
clone() {
git clone $1
cd $(basename ${1%.*})
if [ -L ./package.json ]; then
if test -f "./package.json"; then
echo "..."
echo "Found package.json... installing dependencies"
echo "..."
npm install
fi
}
Expand Down

0 comments on commit 9067f52

Please sign in to comment.