Skip to content

Plugin Foundation #1

Closed
Closed

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

Activity

  1. added
    [Type] Enhancement
    Infrastructure
    on Nov 23, 2022
  2. added this to the Sprint 1 (Test) milestone on Nov 23, 2022
  3. added and removed on Nov 24, 2022
  4. moved this from Backlog to Todo in Plugin Checkon Nov 24, 2022
  5. moved this from To Do to Definition in Plugin Checkon Nov 24, 2022
  6. moved this from Definition to Backlog in Plugin Checkon Nov 24, 2022
  7. moved this from Backlog to Definition in Plugin Checkon Nov 24, 2022
  8. moved this from Definition to To Do in Plugin Checkon Nov 24, 2022
  9. moved this from To Do to Definition in Plugin Checkon Nov 24, 2022
  10. added and removed
    [Type] Enhancement
    on Nov 29, 2022
  11. 6 remaining items

  12. moved this from To Do to AC Review in Plugin Checkon Dec 7, 2022
  13. moved this from AC Review to Definition in Plugin Checkon Dec 7, 2022
  14. added and removed
    Needs Review
    on Dec 7, 2022
  15. self-assigned this
    on Dec 7, 2022
  16. jjgrainger commented on Dec 7, 2022

    @jjgrainger
    Contributor

    Thanks @felixarntz

    I've updated the ACs to include the items you've raised and referenced the Performance Lab plugin as an example.

  17. moved this from Definition to AC Review in Plugin Checkon Dec 7, 2022
  18. felixarntz commented on Dec 7, 2022

    @felixarntz
    Member

    Thanks @jjgrainger, LGTM!

  19. moved this from AC Review to To Do in Plugin Checkon Dec 7, 2022
  20. moved this from To Do to Code Review in Plugin Checkon Dec 12, 2022
  21. moved this from Code Review to In Progress in Plugin Checkon Dec 12, 2022
  22. moved this from In Progress to Code Review in Plugin Checkon Dec 13, 2022
  23. Repository owner moved this from Code Review to Done in Plugin Checkon Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Infrastructure[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions