This directory contains the development container configuration for the Static Site Exporter plugin.
The devcontainer automatically installs the following extensions:
- Intelephense - PHP code intelligence
- PHP Debug - Debug support for PHP
- PHP Sniffer - Integrates PHP_CodeSniffer for WordPress coding standards
- PHPUnit - PHPUnit test integration
- EditorConfig - EditorConfig support for consistent coding styles
- GitHub Copilot - AI-powered code completion
- GitHub Pull Requests - Manage GitHub PRs and issues
- Git - Latest version with PPA support
- GitHub CLI - Command-line tool for GitHub
- Port 8088 - WordPress development server
- Port 3306 - MySQL database
When you open the project in a devcontainer, it will automatically:
- Start WordPress and MySQL services via Docker Compose
- Install Composer dependencies
- Mount the project as a WordPress plugin
- Install the Dev Containers extension
- Open the project in VS Code
- Click "Reopen in Container" when prompted (or use Command Palette: "Dev Containers: Reopen in Container")
- Wait for the container to build and dependencies to install
- Access WordPress at http://localhost:8088
- Click "Code" → "Codespaces" → "Create codespace on branch"
- Wait for the environment to be set up
- Access WordPress via the forwarded port
The devcontainer uses the main docker-compose.yml with overrides from .devcontainer/docker-compose.yml:
- wordpress - WordPress development environment (default service)
- db - MySQL database
- wpcli - WordPress CLI tools
devcontainer.json- Main devcontainer configurationdocker-compose.yml- Docker Compose overrides for devcontainer../.editorconfig- Editor configuration for consistent code style
The devcontainer is pre-configured to follow WordPress coding standards:
- PHP files use tabs (4 spaces width)
- PHP_CodeSniffer is configured with the WordPress ruleset
- Files are configured to have final newlines and trimmed trailing whitespace
# Run all tests
script/cibuild
# Run PHPUnit tests only
script/cibuild-phpunit
# Run PHPCS linting only
script/cibuild-phpcs# Composer dependencies (automatically installed on container creation)
composer install
# Update dependencies
composer update