Skip to content

Instantly share code, notes, and snippets.

@suzuki-shunsuke
Last active August 14, 2017 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzuki-shunsuke/c9e63e0c4c069c2649c256c638e164bd to your computer and use it in GitHub Desktop.
Save suzuki-shunsuke/c9e63e0c4c069c2649c256c638e164bd to your computer and use it in GitHub Desktop.
nodebrew の nodeのバージョンアップするスクリプト
#!/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