Last active
August 14, 2017 02:24
-
-
Save suzuki-shunsuke/c9e63e0c4c069c2649c256c638e164bd to your computer and use it in GitHub Desktop.
nodebrew の nodeのバージョンアップするスクリプト
This file contains 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/bin/env zsh | |
set -e | |
NODE_VERSION=$1 | |
nodebrew install-binary $NODE_VERSION | |
nodebrew use $NODE_VERSION | |
PACKAGES=( | |
yo | |
yeoman-generator | |
generator-generator | |
yarn | |
generator-ss-standard-version | |
generator-ss-validate-commit-msg | |
) | |
npm i -g $PACKAGES | |
LINKS=( | |
flask | |
ansible-playbook | |
) | |
for LINK in "${LINKS[@]}"; do | |
ghq get suzuki-shunsuke/generator-ss-$LINK | |
cd `ghq root`/github.com/suzuki-shunsuke/generator-ss-$LINK | |
if [ -d node_modules ]; then | |
rm -R node_modules | |
fi | |
npm link | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment