#!/usr/bin/env bash

pushd src
  rm -rf **/node_modules
popd

rm -rf source.zip delivery.zip

set -ex

mkdir -p delivery/webservice
mkdir -p delivery/myreactapp

cp src/webservice/app.js delivery/webservice/app.js
cp src/myreactapp/src/App.js delivery/myreactapp/App.js


7za a -tzip delivery.zip delivery/

7za a -tzip -ppassword source.zip src/
