Files
S.P.L.U.R.T-Station-13/tgui/build.sh

12 lines
335 B
Bash

#!/bin/bash
#RUN THIS IN THE tgui/ folder
set -e
export NODE_VERSION=4
if [ ! -d "/tmp/nvm" ]; then
rm -rf /tmp/nvm && git clone https://github.com/creationix/nvm.git /tmp/nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source /tmp/nvm/nvm.sh && nvm install $NODE_VERSION
fi
source /tmp/nvm/nvm.sh
gulp --min