Skip to content

feat: initial wpgraphql-debug-extensions plugin boilerplate #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions plugins/composer-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,34 @@
}
}
},
"wpengine/wpgraphql-debug-extensions": {
"0.0.1": {
"name": "wpengine/wpgraphql-debug-extensions",
"version": "0.0.1",
"type": "wordpress-plugin",
"description": "A WordPress plugin for wpgraphql debug extensions.",
"homepage": "https://github.com/wpengine/hwptoolkit",
"license": "GPL-2.0",
"authors": [
{
"name": "WP Engine Headless OSS Development Team",
"email": "[email protected]",
"homepage": "https://wpengine.com/"
}
],
"support": {
"issues": "https://github.com/wpengine/hwptoolkit/issues",
"email": "[email protected]"
},
"dist": {
"url": "https://github.com/wpengine/hwptoolkit/releases/download/%40wpengine%2Fwpgraphql-debug-extensions-plugin-0.0.1/wpgraphql-debug-extensions.zip",
"type": "zip"
},
"require": {
"composer/installers": "~1.0 || ~2.0"
}
}
},
"wpengine/wp-graphql-webhooks": {
"0.0.3": {
"name": "wpengine/wp-graphql-webhooks",
Expand Down
36 changes: 36 additions & 0 deletions plugins/wpgraphql-debug-extensions/.distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/.devcontainer
/.git
/.github
/.idea
/.log
/.vscode
/.wordpress-org
/bin
/docker
/docker-output
/docs
/img
/phpstan
/plugin-build
/tests

.coveralls.yml
.distignore
.dockerignore
.DS_Store
.env
.env.dist
.gitattributes
.gitignore
.phpcs.xml
.phpcs.xml.dist
.travis.yml
CHANGELOG.md
codeception.dist.yml
codeception.yml
composer.json
composer.lock
docker-compose.yml
phpstan.neon.dist
README.md
schema.graphql
27 changes: 27 additions & 0 deletions plugins/wpgraphql-debug-extensions/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
tab_width = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.txt]
trim_trailing_whitespace = false

[*.{md,json,yml}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

[*.json]
indent_style = tab
38 changes: 38 additions & 0 deletions plugins/wpgraphql-debug-extensions/.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
DB_NAME=wordpress
DB_HOST=app_db
DB_USER=wordpress
DB_PASSWORD=wordpress
WP_TABLE_PREFIX=wp_
WP_URL=http://localhost
WP_DOMAIN=localhost
[email protected]
ADMIN_USERNAME=admin
ADMIN_PASSWORD=root
ADMIN_PATH=/wp-admin

TEST_DB_NAME=wptests
TEST_DB_HOST=127.0.0.1
TEST_DB_USER=root
TEST_DB_PASSWORD=
TEST_WP_TABLE_PREFIX=wp_

SKIP_DB_CREATE=false
TEST_WP_ROOT_FOLDER=/tmp/wordpress
[email protected]

TESTS_DIR=tests
TESTS_OUTPUT=tests/_output
TESTS_DATA=tests/_data
TESTS_SUPPORT=tests/_support
TESTS_ENVS=tests/_envs

CORE_BRANCH=develop
SKIP_TESTS_CLEANUP=1
SUITES=wpunit

WORDPRESS_DB_HOST=${DB_HOST}
WORDPRESS_DB_USER=${DB_USER}
WORDPRESS_DB_PASSWORD=${DB_PASSWORD}
WORDPRESS_DB_NAME=${DB_NAME}

PLUGIN_SLUG=wp-graphql-debug-extensions
20 changes: 20 additions & 0 deletions plugins/wpgraphql-debug-extensions/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

/.github export-ignore
/assets export-ignore
/bin export-ignore
/docker export-ignore
/docs export-ignore
/phpstan export-ignore
/tests export-ignore
/wpgraphql-debug-extensions export-ignore

/.coveralls export-ignore
/.distignore export-ignore
/.dockerignore export-ignore
/.env.dist export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.phpcs.xml.dist export-ignore
/composer.lock export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
49 changes: 49 additions & 0 deletions plugins/wpgraphql-debug-extensions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Hidden files
.DS_Store
Thumbs.db

# IDE Files
.devcontainer/*
.devcontainer.json
.vscode
.idea

# Environment variables for testing
.env
.env.*
!.env.dist

# Ruleset Overrides
phpcs.xml
phpunit.xml
phpstan.neon

# Directory to generate the dist zipfile
plugin-build

# Composer auth
auth.json

# Composer deps
vendor

# NPM deps
node_modules

# Generated Schema used in some tooling. Versioned Schema is uploaded as a Release artifact to Github.
schema.graphql

# WP CLI config overrides
wp-cli.local.yml

# Tests
*.sql
*.tar.gz
!tests
tests/*.suite.yml
coverage/*
build/
.log/

# Cache
phpcs-cache.json
Loading