Skip to content

Plugin Foundation #1

@mehulkaklotar

Description

@mehulkaklotar

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.php exists
  • A composer.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" }
    • PSR-4 autoloading for the /includes folder
  • The /includes folder exists
  • The /tests directory exists
  • A basic README.md, readme.txt and CONTRIBUTING.md files exist
  • An .editorconfig file exists to match WP Coding Standards
  • A package.json file exists with the following
    • "name": "plugin-check"
    • "license": "GPL-2.0-or-later"
    • "repository": "git+https://github.com/10up/plugin-check.git"
  • An .nvmrc file with the node version to use on the project

Metadata

Metadata

Assignees

Labels

InfrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions