Closed mehulkaklotar closed 1 year ago
@jjgrainger The ACs look good to me, just nit-picking that we probably need a few more workflow related files, such as .editorconfig
, possibly .nvmrc
if we later also add package.json
, things like that. We don't necessarily have to list those one by one in the ACs, but it would be good to follow the example of https://github.com/WordPress/performance.
Thanks @felixarntz
I've updated the ACs to include the items you've raised and referenced the Performance Lab plugin as an example.
Thanks @jjgrainger, LGTM!
Description
The initial plugin foundation will use package.json to make use of
wp-scripts
,wp-env
, preparing husky and common infrastructure commands to format codes, run tests, etc, using the Performance Lab plugin as an example.Composer packages will be installed like
squizlabs/php_codesniffer
andwp-coding-standards/wpcs
. Composer will require PHP to be>=5.6
and autload classes withpsr-4
:Directory structure of the plugin
Acceptance Criteria
plugin-check.php
existscomposer.json
file exists with the following"name":" wordpress/plugin-check"
"type": "wordpress-plugin"
"license": "GPL-2.0-or-later"
"description": "WordPress Plugin Checker Plugin."
"require": { "php": ">=5.6" }
/includes
folder/includes
folder exists/tests
directory existsREADME.md
,readme.txt
andCONTRIBUTING.md
files exist.editorconfig
file exists to match WP Coding Standardspackage.json
file exists with the following"name": "plugin-check"
"license": "GPL-2.0-or-later"
"repository": "git+https://github.com/10up/plugin-check.git"
.nvmrc
file with the node version to use on the project