Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated node version number. #2

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
19 changes: 9 additions & 10 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,31 @@ GRADLE_TASK=${GRADLE_TASK-stage}

print_env

vendored_node_version=0.10.25
vendored_node_version=6.6.0
node_dir=$CACHE_DIR/node
bower_app=$node_dir/lib/node_modules/bower
gulp_app=$node_dir/lib/node_modules/gulp

if [ ! -d $node_dir ]; then
status "Vendoring Node v$vendored_node_version to run Bower."
mkdir -p $node_dir
curl -s http://s3pository.heroku.com/node/v$vendored_node_version/node-v$vendored_node_version-linux-x64.tar.gz | tar xfz - -C $node_dir --strip-components=1
node_url=http://s3pository.heroku.com/node/v$vendored_node_version/node-v$vendored_node_version-linux-x64.tar.gz
curl -s $node_url | tar xfz - -C $node_dir --strip-components=1
PATH=$PATH:$node_dir/bin
fi


if [ ! -d $bower_app ]; then
status "Installing bower"
$node_dir/bin/npm --silent -g install bower
npm --silent -g install bower
fi

export bower_run=$node_dir/bin/bower
PATH=$PATH:$node_dir/bin

cd $BUILD_DIR
status "Running: $bower_run --allow-root install"
$bower_run --allow-root install
status "Running: bower --allow-root install"
bower --allow-root install

status "Installing npm dependencies"
$node_dir/bin/npm --silent install
npm --silent install

if [ -e gulpfile.js ]; then

Expand Down Expand Up @@ -100,4 +99,4 @@ $BUILDCMD 2>&1 | sed -u 's/^/ /'
if [ "${PIPESTATUS[*]}" != "0 0" ]; then
echo " ! Failed to build app"
exit 1
fi
fi