Created
November 25, 2020 13:43
-
-
Save raffylopez/1df72530f066a0a51c4c0efa4dfeafab to your computer and use it in GitHub Desktop.
npm-link script
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
#!/usr/env bash | |
# +-------------------+ | |
# | Color Definitions | | |
# +-------------------+ | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
RESTORE='\033[0m' | |
YELLOW='\033[00;33m' | |
BLUE='\033[00;34m' | |
PURPLE='\033[00;35m' | |
CYAN='\033[00;36m' | |
LIGHTGRAY='\033[00;37m' | |
LRED='\033[01;31m' | |
LGREEN='\033[01;32m' | |
LYELLOW='\033[01;33m' | |
LBLUE='\033[01;34m' | |
LPURPLE='\033[01;35m' | |
LCYAN='\033[01;36m' | |
WHITE='\033[01;37m'namestr=`uname` | |
#! /usr/bin/env bash | |
echo "${BLUE}Linking dependencies...${NC}" | |
for d in "$(node '/Users/volare/scripts/packageDependencies.js')"; do | |
# npm --global install $d | |
npm link --no-save $d | |
done | |
echo "${BLUE}Linking devDependencies...${NC}" | |
for d in "$(node '/Users/volare/scripts/packageDevDependencies.js')"; do | |
# npm --global install $d | |
npm link --no-save -D $d | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment