#!/bin/sh -e export NODE_ENV=production SCRIPTDIR=$(cd "$(dirname "$(readlink -f $0)")"; echo "$(pwd)") BABEL_TARGET="browser" "$SCRIPTDIR/quintype-app-build" # npm run compile rm -rf app/client # Removing app/client so that no one accidently requires it BABEL_TARGET="node" "$SCRIPTDIR/quintype-app-build" rm -rf node-modules npm install --no-optional --production rm -rf /app/.git /app/.npm