#!/usr/bin/env bash
set -e
echo ">> Installing NPM Packages..."
npm install
echo ">> Building Application source..."
if [ -z "$IN_TEST" ]; then
npm install -g cordova ionic # CircleCI can't find it otherwise
fi
npm run build
echo ">> Installing cordova plugins..."
cordova platform add android