creativecommons / wp-plugin-creativecommons

Official Creative Commons plugin for licensing your content. With Creative Commons licenses, keep your copyright AND share your creativity.
https://wordpress.org/plugins/creative-commons/
GNU General Public License v2.0
148 stars 100 forks source link

[Feature] Expand docker-compose.yml file to include composer and phpcs functionality #201

Open possumbilities opened 2 years ago

possumbilities commented 2 years ago

Problem

See #199, this builds from there.

MVP
At a minimum:

 - setup MySQL server (MariaDB preferably)
 - setup a web server (Apache), running latest WordPress files
 - make Web and DB server connect with each other appropriately
 - mount the db locally, so it persists
 - mount the WordPress install locally, so it persists
 - mount the wp-plugin-creativecommons plugin directory into the web server at wp-content/plugins/, so it can be user activated
-  include appropriate .gitignore additions so local mount points are not tracked ( ./dev/db & ./dev/wordpress)
 update documentation to reflect new docker compose one-liner referencing docker-compose.yml file

The baseline Docker Image would benefit from having Composer bundled in via the official Composer docker image, so that at a minimum the official WordPress Coding Standards rules for phpcs can be installed easily and configured for dev use. At current, the baseline image leaves this up to the individual dev to install and configure, bundling it here makes setup smoother.

Description

Once #199 is implemented, then as an expansion, Composer could be added in the docker-compose.yml file to allow more well defined testing. Then, the official WordPress Coding Standards rules for phpcs can be installed.

This would then allow proper WordPress coding standards to be applied, and tested.

MVP

Alternatives

There are currently no known official alternatives to the WordPress Coding Standards rules for phpcs that I am aware of.

Additional context

Implementation

AK4266 commented 1 year ago

I would like to work on this issue can you assign it to me

possumbilities commented 1 year ago

@AK4266 sure! ❤️