mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
* Coupon mutations implemented and tested * Vendor files no longer versioned and package workflow implemented
25 lines
472 B
Bash
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
|