Files
wp-graphql-woocommerce/bin/remove-wordpress.local.sh
T
Geoffrey K TaylorandGitHub f59872ae89 Coupon mutations added. (#510)
* Coupon mutations implemented and tested
* Vendor files no longer versioned and package workflow implemented
2021-07-05 13:51:52 -04:00

25 lines
472 B
Bash

#!/usr/bin/env bash
set +u
source .env
print_usage_instruction() {
echo "Ensure that .env file exist in project root directory exists."
echo "And run the following 'composer $@' in the project root directory"
exit 1
}
BASEDIR=$(dirname "$0");
source ${BASEDIR}/_env.sh
source ${BASEDIR}/_lib.sh
remove_wordpress
composer install --no-dev
# Remove "extra" config.
composer config --unset extra.wordpress-install-dir
composer config --unset extra.installer-paths