Loading...
Loading...
Setup and develop the WooCommerce block email editor. Use when working on email templates, transactional emails, or the email editor feature.
npx skill4agent add woocommerce/woocommerce woocommerce-email-editorpnpm --filter=@woocommerce/plugin-woocommerce -- wp-env starthttp://localhost:8888wp-env infopnpm --filter=@woocommerce/plugin-woocommerce watch:build:adminplugins/woocommerce/.wp-env.override.json{
"lifecycleScripts": {
"afterStart": "./tests/e2e-pw/bin/test-env-setup.sh && wp-env run cli wp plugin install wp-mail-smtp --activate"
},
"config": {
"WPMS_ON": true,
"WPMS_MAILER": "smtp",
"WPMS_SMTP_HOST": "host.docker.internal",
"WPMS_SMTP_PORT": "1025",
"WPMS_SMTP_AUTH": false,
"WPMS_SMTP_SECURE": ""
}
}docker run --rm --name=mailpit -p 1025:1025 -p 8025:8025 -d axllent/mailpitdocker start mailpit.wp-env.override.jsonpnpm --filter=@woocommerce/plugin-woocommerce -- wp-env start --update| Path | Description |
|---|---|
| Email Editor PHP package |
| Email Editor JS package |
| Local wp-env config (gitignored) |
pnpm --filter=@woocommerce/email-editor buildpackages/php/email-editor/cd packages/php/email-editor
wp-env start
composer dump-autoloadwp-env run tests-cli --env-cwd=wp-content/plugins/email-editor ./vendor/bin/phpunit --configuration phpunit-integration.xml.distwp-env run tests-cli --env-cwd=wp-content/plugins/email-editor ./vendor/bin/phpunit --configuration phpunit-integration.xml.dist --filter Table_Testpackages/php/email-editor/cd tasks/phpstan && ./run-phpstan.shcd tasks/phpstan && ./run-phpstan.sh php7composer run phpcs