@carmopereira/wp-php-template
v1.0.6
Published
Traditional WordPress plugin generator with wp-scripts support
Maintainers
Readme
wp-php-template
A lightweight CLI tool to scaffold traditional WordPress plugins (PHP-first) while integrating modern JavaScript and CSS workflows using @wordpress/scripts.
🚀 Overview
Unlike the official @wordpress/create-block, which is focused on Gutenberg blocks, this tool is designed for developers who need a classic plugin structure but still want to use ES6+, SASS, and modern build tools.
It automates:
- Plugin Scaffolding: Generates a clean WordPress plugin header and structure.
- Modern Build Stack: Installs
@wordpress/scripts. - Folder Structure: Creates a
/srcdirectory for your assets. - Ready-to-go Scripts: Pre-configures
npm startandnpm run build.
📋 Prerequisites
Before using this tool, ensure you have the following installed:
- Node.js (LTS version recommended)
💻 Usage
You don't need to install this globally. You can run it directly using npx:
npx @carmopereira/wp-php-template@latestNo WordPress installation is required to run the scaffold.
