Skip to content

Instantly share code, notes, and snippets.

@joeSaad
Created May 3, 2017 20:24
Show Gist options
  • Save joeSaad/9c4f81e56442596542aa4acdabe8363e to your computer and use it in GitHub Desktop.
Save joeSaad/9c4f81e56442596542aa4acdabe8363e to your computer and use it in GitHub Desktop.
#!/bin/bash
# for dealing with all github repos related to npm packages, you basically clone into a directory you name
# install all related npm packages, open your favorite editor for that directory, and run your npm start or whatevever running script you had
# either npm start or npm run dev etc...
git clone $1 $2
cd $2
npm install
sublime .
if [ -z "$3" ]
then
npm start
else
$3
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment