Created
July 25, 2018 12:55
-
-
Save thatsprettyfaroutman/55ab537b5fd91312d15c9cee590ed8c4 to your computer and use it in GitHub Desktop.
Automator magic!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH="/Users/viljami/.nvm/versions/node/v8.4.0/bin/:$PATH" | |
LOGFILE=~/Desktop/w2log.txt | |
PROJECTDIR=~/Documents/w2 | |
cd $PROJECTDIR | |
trap 'kill $(jobs -p)' EXIT | |
echo "Running npm install" > $LOGFILE | |
echo "" >> $LOGFILE | |
echo "" >> $LOGFILE | |
npm i >> $LOGFILE | |
echo "" >> $LOGFILE | |
echo "" >> $LOGFILE | |
echo "Running npm dev" >> $LOGFILE | |
echo "" >> $LOGFILE | |
npm run dev -- --open >> $LOGFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment