Skip to content

Commit

Permalink
Merge pull request #37 from onmodulus/bug/npm-login
Browse files Browse the repository at this point in the history
fix: Install expect dependency
  • Loading branch information
theworkflow authored Feb 3, 2017
2 parents 145a1f0 + bc1aa69 commit e331af3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ if [[ $DEBUG ]]; then
FLAGS="$FLAGS --debug"
fi

if [[ $NPM_USER ]] && [[ $NPM_PASSWORD ]] && [[ $NPM_EMAIL ]]; then
npm-login
fi

demeteorizer $FLAGS

# Searches a directory top-down looking for a file.
Expand Down Expand Up @@ -88,10 +92,6 @@ fi

nvm alias deploy $(nvm current)

if [[ $NPM_USER ]] && [[ $NPM_PASSWORD ]] && [[ $NPM_EMAIL ]]; then
npm-login
fi

if [[ -d $INPUT_DIR/node_modules ]]; then
mv $INPUT_DIR/node_modules $OUTPUT_DIR
fi
Expand Down
3 changes: 3 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ fi

touch $PROFILE

# Install expect
apt-get install -y expect

# Install nvm
mkdir -p $NVM_DIR
curl https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
Expand Down

0 comments on commit e331af3

Please sign in to comment.