Distribution Files
Generate production-ready files for your WordPress theme:
npm run exportThe production build always runs inside the Node.js container, so both commands produce identical output. If the Docker stack was not already running, npm run export automatically stops it again when the build finishes.
What Gets Generated
The dist/ folder contains your compiled theme:
- CSS - Minified with cssnano, autoprefixed.
- JavaScript - Transpiled with Babel, minified.
- Theme files - Block templates,
theme.json, and PHP, copied as-is fromsrc/theme/. - Assets - Images and fonts from
src/assets/. - Zip archive -
dist/wordpressify.zip, ready to upload to WordPress.
Backups
To back up your local WordPress installation (core files, themes, plugins, and uploads), run:
npm run export:backupThis zips the full build/ directory into backups/<date>.zip. The database is not included, as it lives in a Docker volume. Like export, it auto-stops the Docker stack afterwards if it was not already running.
Deployment
You can upload wordpressify.zip manually through the WordPress admin (Appearance > Themes > Add New > Upload Theme), or set up automated deployments with GitHub Actions.
Auto Deploy
Set up automatic deployment with GitHub Actions via FTP or SSH.