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