angular-cn/scripts/install.sh
Patrice Chalin 13aa6b1498 chore(travis): include dart doc generation
closes #1910
- Installs Dart SDK
- Installs ng2/dart sources from the pub package site.
- Re-enables doc build on Travis
- install Dartium browser for eventual testing.
- allow TMP and PKG to be set by developer before calling, e.g., install-dart-sdk.sh.
- removes `npm install -g gulp --no-optional` has been removed since it does not appear to be needed.
- Implements most of #1907.
2016-07-19 20:26:39 -07:00

31 lines
633 B
Bash
Executable File

#!/usr/bin/env bash
set -e -o pipefail
cd `dirname $0`/..
if [[ "$(node --version)" < "v5" ]]; then
echo "ERROR: bad version of node detected. If you have nvm installed, type:"
echo " nvm use"
echo "Aborting installation."
exit 1;
else
echo "Node version: $(node --version)"
fi
echo "Installing main packages ..."
npm install --no-optional
echo "Patching ..."
source ./scripts/patch.sh
if [ -z "$TRAVIS" ]; then
echo "Rebuilding node-sass, just in case ..."
npm rebuild node-sass;
fi
echo "Installing packages for examples ..."
source ./scripts/examples-install.sh
set +x
echo "Installation done"