#/usr/bin/env bash

#   _______________
#  |.-------------.|
#  ||~$[byte-sized||
#  ||   .tv]>     ||
# _|-_____________-|_
# \_________________/
#
# This project is a part of the “Byte-Sized JavaScript” videocasts.
#
# You can watch “Byte-Sized JavaScript” at: https://bytesized.tv/
#
# MIT Licensed — See LICENSE.md
#
# Send your comments, suggestions, and feedback to me@volkan.io
#

flow-remove-types --pretty src/ -d lib/

if [ $? -gt 0 ]; then
  echo "Error removing flow types!"
  exit 1
fi

flow-copy-source -v src lib

if [ $? -gt 0 ]; then
  echo "Error copying the source!"
  exit 1
fi

echo "Everything is awesome!"
