doomemacs/scripts/setup-js.sh
2017-01-16 23:13:12 -05:00

23 lines
350 B
Bash
Executable File

#!/usr/bin/env bash
source VARS
#
echo "Setting up JS (tern/trepanjs)"
case "$OSTYPE" in
darwin*)
brew install node
;;
linux*)
if is-arch; then
sudo pacman --needed --noconfirm -S nodejs npm
else
echo "..."
exit 1
fi
;;
esac
npm -g install trepanjs tern