{"id":50953063,"url":"https://github.com/reandimo/wordpress-vite-boilerplate","last_synced_at":"2026-06-18T03:34:11.507Z","repository":{"id":347615882,"uuid":"1194518938","full_name":"reandimo/wordpress-vite-boilerplate","owner":"reandimo","description":"Wordpress + Vite Stack for Development","archived":false,"fork":false,"pushed_at":"2026-03-31T22:16:01.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-18T03:34:10.518Z","etag":null,"topics":["acf","acf-blocks","bedrock","ftp","ftp-sync","woocommerce","wordpress","wordpress-bedrock"],"latest_commit_sha":null,"homepage":"https://reandimo.github.io/wordpress-vite-boilerplate/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reandimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-28T13:19:45.000Z","updated_at":"2026-03-31T22:16:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/reandimo/wordpress-vite-boilerplate","commit_stats":null,"previous_names":["reandimo/wordpress-vite-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reandimo/wordpress-vite-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reandimo%2Fwordpress-vite-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reandimo%2Fwordpress-vite-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reandimo%2Fwordpress-vite-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reandimo%2Fwordpress-vite-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reandimo","download_url":"https://codeload.github.com/reandimo/wordpress-vite-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reandimo%2Fwordpress-vite-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34475375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acf","acf-blocks","bedrock","ftp","ftp-sync","woocommerce","wordpress","wordpress-bedrock"],"created_at":"2026-06-18T03:34:10.684Z","updated_at":"2026-06-18T03:34:11.500Z","avatar_url":"https://github.com/reandimo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/WordPress-Bedrock-21759b?style=for-the-badge\u0026logo=wordpress\u0026logoColor=white\" alt=\"WordPress\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Vite-5-646CFF?style=for-the-badge\u0026logo=vite\u0026logoColor=white\" alt=\"Vite\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Docker-Ready-2496ED?style=for-the-badge\u0026logo=docker\u0026logoColor=white\" alt=\"Docker\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eWordPress Vite Boilerplate\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eBedrock + Docker + Vite + Block Theme (FSE)\u003c/b\u003e\u003cbr/\u003e\n  Interactive setup, ACF Blocks v3, TypeScript, SCSS, and remote sync via SSH/FTP.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PHP-8.2-777BB4?style=flat-square\u0026logo=php\u0026logoColor=white\" alt=\"PHP\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/TypeScript-strict-3178C6?style=flat-square\u0026logo=typescript\u0026logoColor=white\" alt=\"TypeScript\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/SCSS-BEM-CC6699?style=flat-square\u0026logo=sass\u0026logoColor=white\" alt=\"SCSS\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-GPL--2.0-green?style=flat-square\" alt=\"License\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-quick-start\"\u003eQuick Start\u003c/a\u003e ·\n  \u003ca href=\"#-dev-modes\"\u003eDev Modes\u003c/a\u003e ·\n  \u003ca href=\"docs/setup-guide.md\"\u003eSetup Guide\u003c/a\u003e ·\n  \u003ca href=\"docs/theme-development.md\"\u003eTheme Dev\u003c/a\u003e ·\n  \u003ca href=\"docs/acf-blocks.md\"\u003eACF Blocks\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## The Problem\n\n```\n😩 Classic WordPress                    ✨ With This Boilerplate\n─────────────────────                   ─────────────────────────\nEdit via FTP or cPanel editor           Edit locally, auto-sync to server\nNo HMR, manual browser refresh         Vite HMR — instant CSS/JS updates\nVanilla CSS / jQuery spaghetti          TypeScript + SCSS + BEM\nNo version control structure            Bedrock + Docker + Composer\n\"Works on my machine\"                   Same stack everywhere\nCreate blocks with copy-paste PHP       ACF Blocks v3 with field groups\n```\n\nThink **`shopify theme dev`**, but for WordPress.\n\n---\n\n## 📦 Requirements\n\n- [Node.js](http://nodejs.org/) \u003e= 18\n- [Git](https://git-scm.com/) (includes Git Bash on Windows)\n\nEverything else is checked automatically by the setup script.\n\n---\n\n## 🚀 Quick Start\n\n```bash\n# Clone\ngit clone https://github.com/reandimo/wordpress-vite-boilerplate.git my-project\ncd my-project\n\n# Run the interactive setup\nnode setup.js\n\n# Follow the on-screen instructions ✨\n```\n\nThe setup script detects your OS, asks for your preferences, checks dependencies, and configures everything. See the [Setup Guide](docs/setup-guide.md) for details.\n\n---\n\n## 🔀 Dev Modes\n\nThe setup wizard lets you choose how you want to develop:\n\n```\n╭──────────────────────────────────────────────────────────────╮\n│                                                              │\n│   🐳  docker        Full local stack                        │\n│                     PHP, Nginx, MariaDB, MailHog, phpMyAdmin │\n│                                                              │\n│   🔄  remote-sync   Edit locally, sync to remote            │\n│                     SSH (rsync) or FTP (lftp)                │\n│                                                              │\n│   ⚡  both          Docker local + remote sync              │\n│                     Best of both worlds                      │\n│                                                              │\n╰──────────────────────────────────────────────────────────────╯\n```\n\n---\n\n## 🔄 Sync Protocols\n\n```\n┌──────────────────────┬──────────────────────┐\n│  SSH (rsync)         │  FTP (lftp)          │\n│  ══════════          │  ═════════           │\n│  ✔ Delta transfer    │  ✔ Universal access  │\n│  ✔ Encrypted         │  ✔ No server setup   │\n│  ✔ Passwordless      │  ✔ Works everywhere  │\n│  ✔ ~200 bytes/edit   │  ✘ Full file upload  │\n│                      │                      │\n│  ★ Recommended       │  ○ Fallback option   │\n└──────────────────────┴──────────────────────┘\n```\n\nPowered by [**wp-dev-sync**](https://github.com/reandimo/wp-dev-sync) CLI:\n\n```bash\nnpm run sync            # Watch + auto-sync\nnpm run sync:push       # One-time upload\nnpm run sync:pull       # One-time download\nnpm run tunnel          # Public URL for previews\nnpm run setup:remote    # Preflight check\n```\n\n---\n\n## 📖 Documentation\n\n| | Page | What you'll learn |\n|:--|:-----|:------------------|\n| 🧙 | [Setup Guide](docs/setup-guide.md) | Interactive setup walkthrough and config options |\n| 🐳 | [Docker Development](docs/docker-development.md) | Local stack, services, and daily workflow |\n| 🔄 | [Remote Sync](docs/remote-sync.md) | SSH/FTP sync, watch mode, tunnels |\n| 🎨 | [Theme Development](docs/theme-development.md) | Vite, HMR, SCSS, TypeScript, asset pipeline |\n| 🧱 | [ACF Blocks](docs/acf-blocks.md) | Creating custom blocks with ACF v3 |\n| 🚀 | [Deployment](docs/deployment.md) | Production builds and server deployment |\n| 🪟 | [Windows Setup](docs/windows-setup.md) | Windows-specific config and troubleshooting |\n\n---\n\n## 🏗️ Project Structure\n\n```\nproject/\n├── setup.js                        # Interactive setup (run once)\n├── docker-compose.yml              # Docker services\n├── docker/                         # PHP 8.2-fpm + Nginx configs\n├── app/                            # Bedrock root\n│   ├── composer.json               #   ├─ WP core + plugins (wpackagist)\n│   ├── config/                     #   ├─ WordPress config (environments)\n│   └── web/app/themes/\u003ctheme\u003e/     #   └─ Your Block Theme ⬇\n└── package.json                    # Root scripts (sync, tunnel, setup)\n```\n\n## 🎨 Theme Structure\n\n```\napp/web/app/themes/\u003ctheme\u003e/\n│\n├── blocks/                         # ACF Blocks v3\n│   └── example-cta/                #   └─ block.json + render.php\n│\n├── includes/                       # PHP classes (PSR-4)\n│   ├── ACF/                        #   ├─ Field groups\n│   ├── Helpers/ViteHelper.php      #   ├─ Vite asset loading\n│   └── Theme/ThemeSetup.php        #   └─ Theme bootstrap\n│\n├── parts/                          # Template parts\n│   ├── header.html                 #   ├─ Site header\n│   └── footer.html                 #   └─ Site footer\n│\n├── templates/                      # FSE block templates\n│   ├── index.html                  #   ├─ Default\n│   ├── page.html                   #   ├─ Pages\n│   ├── single.html                 #   ├─ Posts\n│   └── 404.html                    #   └─ Not found\n│\n├── resources/\n│   ├── fonts/                      # Custom fonts → copied to public/\n│   ├── scripts/frontend/main.ts    # TS entry point\n│   └── styles/\n│       ├── base/                   #   ├─ Variables, media queries\n│       ├── components/             #   ├─ Reusable component styles\n│       ├── sections/               #   ├─ Block/section styles\n│       └── frontend/main.scss      #   └─ SCSS entry point\n│\n├── theme.json                      # Design tokens + block settings\n├── vite.config.js                  # Vite 5 + HMR config\n└── functions.php                   # PSR-4 autoloader + bootstrap\n```\n\n---\n\n## 🧱 ACF Blocks v3\n\nCreate custom blocks with a simple workflow:\n\n```bash\n# 1. Create block files\nblocks/my-block/block.json          # Block definition\nblocks/my-block/render.php          # Block template\n\n# 2. Add ACF fields\nincludes/ACF/MyBlock.php            # Field group\n\n# 3. Register\nfunctions.php → $acf_files[]        # Add 'MyBlock'\nThemeSetup.php → $blocks[]          # Add 'my-block'\n\n# 4. Style\nresources/styles/sections/_my-block.scss\n```\n\nSee the included `blocks/example-cta/` for a complete reference.\n\n---\n\n## ⚡ Vite + HMR\n\n```bash\n# Inside theme directory\nnpm run dev          # Start dev server (localhost:5173)\nnpm run build        # Build once\nnpm run production   # Optimized production build\n```\n\n- **Dev:** Vite dev server with HMR for instant CSS/JS updates\n- **Build:** Assets compiled to `public/` with manifest.json\n- **Fonts:** Automatically copied from `resources/fonts/` to `public/fonts/`\n- **Docker:** `host.docker.internal` lets the PHP container reach Vite on your host\n\n---\n\n## 🐳 Docker Services\n\n```bash\ndocker compose up -d                # Start everything\ndocker compose down                 # Stop everything\ndocker compose exec php sh          # Shell into PHP container\ndocker compose exec php wp cache flush   # WP-CLI\n```\n\n| Service | Port | Description |\n|:--------|:-----|:------------|\n| Nginx | `8080` | Web server |\n| PHP-FPM | `9000` | PHP 8.2 |\n| MariaDB | `3306` | Database |\n| MailHog | `8025` | Email testing |\n| phpMyAdmin | `8081` | Database GUI |\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"docs/setup-guide.md\"\u003e\u003cb\u003e📖 Full Setup Guide\u003c/b\u003e\u003c/a\u003e\n  \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"https://github.com/reandimo/wordpress-vite-boilerplate/issues\"\u003e\u003cb\u003e🐛 Report Bug\u003c/b\u003e\u003c/a\u003e\n  \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"https://github.com/reandimo/wordpress-vite-boilerplate/issues\"\u003e\u003cb\u003e💡 Request Feature\u003c/b\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eBuilt by \u003ca href=\"https://reandimo.dev\"\u003eRenan Diaz\u003c/a\u003e · GPL-2.0-or-later\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freandimo%2Fwordpress-vite-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freandimo%2Fwordpress-vite-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freandimo%2Fwordpress-vite-boilerplate/lists"}