bszyk / zip-wp
Create packaged & versioned WordPress plugin zip.
Fund package maintenance!
Paypal
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Type:wordpress-plugin
pkg:composer/bszyk/zip-wp
Requires (Dev)
- php: >=5.3.0
README
Conveniently build, package, and create a .zip for your WordPress plugin.
Install
composer require bszyk/zip-wp --dev
update your project's composer.json:
"scripts": { "zip-wp": [ "ZipWP\\ZipWP::run_script" ] }
To use, run composer zip-wp in the project's root folder.
What it does
Composer package that runs a bash script that:
- Gets the plugin slug from the home directory folder name.
- Prompts user for the version number.
- Creates and/or updates
changelog.txt.- User may enter multiple lines.
- To exit, use
CTRL Dwhen on a newline.
- Runs
npm run build. - Gathers all
.phpfiles, all content ofbuildandassetsfolders, and other common files. - Compresses items into
./_releases/VERSION/PLUGIN-SLUG.zip.
You will need to give the .sh permission via chmod 775 et. al.