-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
InfrastructureIssues for the overall plugin infrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Milestone
Description
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_codesnifferand wp-coding-standards/wpcs. Composer will require PHP to be >=5.6 and autload classes with psr-4:
"autoload": {
"psr-4": {
"WordPress\\Plugin_Check\\": "includes"
}
}
Directory structure of the plugin
plugin-check/
├─ includes/
├─ tests/
├─ .gitignore
├─ composer.json
├─ CONTRIBUTING.md
├─ plugin-check.php
├─ README.md
├─ readme.txt
Acceptance Criteria
- The main plugin file
plugin-check.phpexists - A
composer.jsonfile 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" }- PSR-4 autoloading for the
/includesfolder
- The
/includesfolder exists - The
/testsdirectory exists - A basic
README.md,readme.txtandCONTRIBUTING.mdfiles exist - An
.editorconfigfile exists to match WP Coding Standards - A
package.jsonfile exists with the following"name": "plugin-check""license": "GPL-2.0-or-later""repository": "git+https://github.com/10up/plugin-check.git"
- An
.nvmrcfile with the node version to use on the project
Metadata
Metadata
Assignees
Labels
InfrastructureIssues for the overall plugin infrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature