0.5.0 • Published 2 years ago
wpcreator v0.5.0
WPCreator: a package for speed up plugin development
You can generate boilerplate WordPress plugin with simple commands
install
use below command for install wpcreator globally:
npm install -g wpcreatorGenerate Boilerplate Plugin
###1. Create plugin base
Go to directory that must contain your plugin such as /wp-content/plugins/ and generate your base plugin:
cd {wordpress_dir}/wp-content/plugins/
wpcreator plugin "Daneshjooyar Course Shop"Or use npx tool:
npx wpcreator plugin "Mypluygin"2. Install plugin composer for active namespace
Go to new plugin directory and install composer:
cd daneshjooyar-course-shop
composer install3. Install Vue panel dependencies
For install VueJs panel for to Panel directory and run below command:
cd Panel
npm installNote: For dev mode VueJs panel define PANEL_DEBUG in wp-config.php file:
define( 'PANEL_DEBUG', true );