#!/bin/sh
# This is a comment!

#cannot use variations. config.variations should NOT have more than 4 items!! WT

# # echo "--------------------------Sandbox 1--------------------------"
cp ./STENCIL_KEYS/config.stencil-sandbox.json config.stencil.json;
cp ./STENCIL_KEYS/secrets.stencil-sandbox.json secrets.stencil.json;
stencil pull;

# if we need to do checkout compile
cp ./checkout/src/app/minibc/request/envConfig.ts-sandbox1 ./checkout/src/app/minibc/request/envConfig.ts
cp ../bundle-checkout-js-main/packages/core/src/app/minibc/request/envConfig.ts-sandbox1 ../bundle-checkout-js-main/packages/core/src/app/minibc/request/envConfig.ts

stencil push -a Light -d;
# # echo "--------------------------Sandbox 1--------------------------"


# echo "--------------------------Live--------------------------"
cp ./STENCIL_KEYS/config.stencil-live.json config.stencil.json;
cp ./STENCIL_KEYS/secrets.stencil-live.json secrets.stencil.json;
stencil pull;

# if we need to do checkout compile
cp ./checkout/src/app/minibc/request/envConfig.ts-master ./checkout/src/app/minibc/request/envConfig.ts
cp ../bundle-checkout-js-main/packages/core/src/app/minibc/request/envConfig.ts-master ../bundle-checkout-js-main/packages/core/src/app/minibc/request/envConfig.ts

stencil push -a Light -d;
# echo "--------------------------Live--------------------------"

