#!/bin/sh

if [[ ! $PWD =~ website$ ]];
then
    echo "Not in website"
    exit 1
fi

rm -rf dist mcapp mcapp.tar.gz
gulp build
mv dist mcapp
rm -rf mcapp/app/external/js/ckeditor
cp -r src/app/external/js/ckeditor mcapp/app/external/js/ckeditor
tar zcf mcapp.tar.gz mcapp

#!/bin/sh

if [[ ! $PWD =~ website$ ]];
then
    echo "Not in website"
    exit 1
fi

rm -rf dist mcapp mcapp.tar.gz
gulp build
mv dist mcapp
rm -rf mcapp/app/external/js/ckeditor
cp -r src/app/external/js/ckeditor mcapp/app/external/js/ckeditor
tar zcf mcapp.tar.gz mcapp
mv mcapp/index*.html mcapp/index.html

Index file not being named index.html
Index file not being named index.html

Added move statement as a quick fix when building production version.
