WP Base Plugin is a WordPress plugin that relies on Vite, Vue, and Composer. This plugin provides a modern development environment for building WordPress plugins with the latest web technologies.
- WordPress 6.0 or higher
- PHP 7.4 or higher
- Node.js 18 or higher
- Composer
-
Clone the repository into your WordPress plugins directory:
git clone https://github.com/your-repo/wp-base-plugin.git wp-content/plugins/wp-base-plugin -
Navigate to the plugin directory:
cd wp-content/plugins/wp-base-plugin -
Install PHP dependencies using Composer:
composer install -
Install JavaScript dependencies using npm:
npm install -
Build the assets using Vite:
npm run build or npm run dev -
Activate the plugin through the WordPress admin dashboard.
To start the development server with hot module replacement, run: