NPM CLI tool for generating a WordPress Plugin in the current folder.
Using this CLI tool, you can generate your own WordPress Plugin. Features:-
- 100% WordPress coding standards maintained.
- Used by lots of plugins in WordPress.org and Codecanyon.
- Code watching functionality using Gulp (auto reload if PHP or JS file change).
- SASS(scss) compilation support.
- Browsersync Integrated to refresh SASS/CSS without browser reload.
- Minimal configuration and folder/file structure that anyone can understand.
$ npx create-wordpress-plugin
npm install
- Change the proxy URL in the
gulpfile.js
to your site URL. - Start Gulp by running
gulp
in the terminal.
Run gulp prod
. This will build a clean distributable zip file of the plugin in which the development files will be excluded.