front / wp-cli-build

Fetch specific versions of plugins/themes from wordpress.org using a build file
43 stars 7 forks source link

Support patches #5

Open hansfn opened 6 years ago

hansfn commented 6 years ago

TLDR: Add support for patches in the build file.

I'm mainly a Drupal developer and hence is used to Drush and install.make / install.make.yaml. I like being able to just commit the make file instead of all the files being part of Drupal and it's contributed modules. Basically, I just commit custom code to Git. The reason I'm able to do this, is that you can include patches in the make file.

PS! I know that the creators of this package know Drush very well so the long explanation is for other people reading the issue.

perandre commented 6 years ago

@hansfn Thanks for chiming in with the first feature request! The Drush make workflow is of course the inspiration behind this, stay tuned for followup.

fabioneves commented 6 years ago

@hansfn I've checked drush make structure for the patches and they normally put them inside each respective section. I think we should follow the same for wp build, inside each plugin name as we have "version", we should put the patches there like: patches: ['string1', 'string2', 'string3', 'string4', 'string5', 'string6'] wether it's an URL or local file (same applies to the core and themes).

I'll be updating this story when we have further development.

Thanks for your input!