Some small tools I've built to help manage simple WordPress/ClassicPress plugin development, including scripting the SVN release
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Kelson Vibber ca5c6dfa48 update readme 2 months ago
LICENSE Initial commit 4 months ago
README.md update readme 2 months ago
wpreadme-md2txt add the svn and zip scripts I'm using too 4 months ago
wprelease-svn add the svn and zip scripts I'm using too 4 months ago
wpzip-package add the svn and zip scripts I'm using too 4 months ago

README.md

WordPress Plugin Dev Tools

by Kelson Vibber

Version 0.9 (2022-06-05)

Some simple tools I wrote to help with for WordPress and ClassicPress plugin development

wpreadme-md2txt

WordPress plugin development tool that takes in a readme.md file that's formatted for use in forges like Github, converts the headings, and outputs a readme.txt file in WordPress' preferred flavor of Markdown. This is not strictly necessary since the WordPress Plugin Directory does parse readme.md files, it's just not well-documented outside their bug tracking system. Also, the ClassicPress Plugin Directory specifically does want a readme.txt.

Usage

Run it in the main directory of your plugin repository, where your readme.md is.

wprelease-svn

Automates the steps needed to release a plugin (or just update the trunk) through WordPress' SVN repository.

Usage

Create a release-svn folder in your git repository (and add it to .gitignore). (If you want to use a different name, edit the RELEASEDIR variable in the script.)

Edit the list of files to include in the svn repository.

To update the trunk, checkout the branch you want to copy.

To prepare a release, create a tag in Git for the release version with the pattern vx.y.z, ex. v1.2.3

Run it in the main folder of the plugin's Git repository:

   wprelease-svn           Updates local trunk only
   wprelease-svn trunk     Pushes trunk to WordPress' SVN (useful for updating Readme)
   wprelease-svn x.y.z     Creates an svn tag for x.y.z and pushes to WordPress,
                           releasing the update. (Git must have a vx.y.z tag.)

wpzip-package

Automatically builds a zip file for the plugin.

Usage

Checkout the branch you want to build.

Edit the list of files to include.

Run the script in the repository's main folder.

TODO

  • Documentation
  • Auto-detect current folder name for building zip
  • Configuration for which files to include