diff --git a/.wp-env.json b/.wp-env.json index b704c15..e1b7d3c 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -15,5 +15,8 @@ }, "config": { "PRONAMIC_PAY_DEBUG": true + }, + "lifecycleScripts": { + "afterStart": "npm run wp-env-after-start" } } diff --git a/package.json b/package.json index 8bd78dc..ceb721e 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,11 @@ "npm-run-all": "^4.1.5" }, "scripts": { - "start": "wp-env start --xdebug && npm run setup && npm run login", - "setup": "npm-run-all setup-*", - "setup-mollie-api-key": "wp-env run cli wp config set MOLLIE_API_KEY $MOLLIE_API_KEY", - "login": "wp-env run cli wp user one-time-login admin" + "wp-env-setup": "npm-run-all wp-env-setup-*", + "wp-env-setup-mollie": "wp-env run cli wp config set MOLLIE_API_KEY $MOLLIE_API_KEY", + "wp-env-setup-buckaroo-website-key": "wp-env run cli wp config set BUCKAROO_WEBSITE_KEY $BUCKAROO_WEBSITE_KEY", + "wp-env-setup-buckaroo-secret-key": "wp-env run cli wp config set BUCKAROO_SECRET_KEY $BUCKAROO_SECRET_KEY", + "wp-env-setup-plugins": "wp-env run cli wp plugin activate pronamic-ideal pronamic-pay-mollie", + "wp-env-after-start": "npm-run-all wp-env-setup" } }