mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
* chore: bump min versions to actual and update deps
* chore: fix multiple empty lines at EOF
* chore: preincrement when standalone (phpcs)
* fix: use `printf` instead of `echo sprintf` [phpcs]
* chore: avoid lonely `if()` in `else{}` [phpcs]
* chore: avoid reserved keywords as param names [phpcs]
* chore: remove unused callback params [phpcs]
* chore: remove more unused callback params [phpcs]
* chore: apply lints to tests
* chore: update ruleset for PHPCS 3.0
* texts: restore $last_request_headers
134 lines
4.5 KiB
JSON
134 lines
4.5 KiB
JSON
{
|
|
"name": "wp-graphql/wp-graphql-woocommerce",
|
|
"description": "WooCommerce bindings for WPGraphQL",
|
|
"type": "wordpress-plugin",
|
|
"keywords": [
|
|
"wordpress",
|
|
"woocommerce",
|
|
"graphql",
|
|
"wp-graphql",
|
|
"wp-graphql-extension",
|
|
"woocommerce-extension",
|
|
"api",
|
|
"woographql"
|
|
],
|
|
"license": "GPL-3.0-or-later",
|
|
"authors": [
|
|
{
|
|
"name": "Geoff Taylor",
|
|
"email": "kidunot89@gmail.com",
|
|
"role": "Lead developer"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=7.3",
|
|
"firebase/php-jwt": "^6.1.0"
|
|
},
|
|
"require-dev": {
|
|
"axepress/wp-graphql-cs": "^2.0.0-beta",
|
|
"axepress/wp-graphql-stubs": "~1.16.0",
|
|
"php-stubs/woocommerce-stubs": "7.9.0",
|
|
"phpstan/extension-installer": "^1.3",
|
|
"phpstan/phpdoc-parser": "^1.22.0",
|
|
"phpstan/phpstan": "^1.10",
|
|
"szepeviktor/phpstan-wordpress": "^1.3"
|
|
},
|
|
"config": {
|
|
"optimize-autoloader": true,
|
|
"process-timeout": 0,
|
|
"sort-packages": true,
|
|
"allow-plugins": {
|
|
"johnpbloch/wordpress-core-installer": true,
|
|
"dealerdirect/phpcodesniffer-composer-installer": true,
|
|
"phpstan/extension-installer": true,
|
|
"composer/installers": true
|
|
}
|
|
},
|
|
"autoload": {
|
|
"classmap": [
|
|
"vendor-prefixed/"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"files": [
|
|
"tests/_data/config.php"
|
|
],
|
|
"psr-4": {
|
|
"Tests\\WPGraphQL\\WooCommerce\\": "tests/_support/"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"installTestEnv": "bash bin/install-test-env.local.sh",
|
|
"runPreCommitCleanup": "bash bin/cleanup.local.sh",
|
|
"runWPUnitTest": "vendor/bin/codecept run wpunit",
|
|
"dBuild": "env $(sed -e '/^#/d' .env.testing) docker compose build",
|
|
"dRunApp": "env $(sed -e '/^#/d' .env.testing) docker compose up testable_app app_db mailhog",
|
|
"dRunTestingDb": "if [ ! \"$(docker ps -a | grep testing_db)\" ]; then env $(sed -e '/^#/d' .env.testing) docker compose up -d testing_db; fi",
|
|
"dSetMainDb": "docker compose exec testable_app ./setup-database.sh main",
|
|
"dSetTestingDb": "docker compose exec testable_app wait-for-it -s -t 300 testing_db:3306 -- ./setup-database.sh testing",
|
|
"dRunTest": [
|
|
"@dRunTestingDb",
|
|
"@dSetTestingDb",
|
|
"docker compose exec testable_app wait-for-it -s -t 300 testing_db:3306 -- codecept run $FILTER"
|
|
],
|
|
"dRunTestStandalone": "env $(sed -e '/^#/d' .env.testing) docker compose run --rm run_tests",
|
|
"dDestroy": "docker compose down -v",
|
|
"lint": "vendor/bin/phpcs -vp .",
|
|
"fix": "vendor/bin/phpcbf -vp .",
|
|
"stan": "phpstan analyze --ansi --memory-limit=1G",
|
|
"strauss": [
|
|
"test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/download/0.14.0/strauss.phar",
|
|
"@php bin/strauss.phar",
|
|
"composer dump-autoload --optimize"
|
|
],
|
|
"post-install-cmd": [
|
|
"@strauss"
|
|
],
|
|
"post-update-cmd": [
|
|
"@strauss"
|
|
]
|
|
},
|
|
"support": {
|
|
"issues": "https://github.com/wp-graphql/wp-graphql-woocommerce/issues",
|
|
"source": "https://github.com/wp-graphql/wp-graphql-woocommerce"
|
|
},
|
|
"archive": {
|
|
"name": "wp-graphql-wooocommerce",
|
|
"exclude": [
|
|
"/.*",
|
|
"/bin",
|
|
"/docs",
|
|
"/local",
|
|
"/plugin-build",
|
|
"/phpstan",
|
|
"/tests",
|
|
"/codeception.dist.yml",
|
|
"/codeception.yml",
|
|
"/codeclimate.yml",
|
|
"/composer.json",
|
|
"/composer.lock",
|
|
"/docker-compose.yml",
|
|
"/Dockerfile",
|
|
"/netlify.toml",
|
|
"/README.md",
|
|
"/phpstan.neon.dist"
|
|
]
|
|
},
|
|
"extra": {
|
|
"strauss" : {
|
|
"target_directory": "vendor-prefixed",
|
|
"namespace_prefix": "WPGraphQL\\WooCommerce\\Vendor\\",
|
|
"classmap_prefix": "WP_GraphQL_WooCommerce_Vendor",
|
|
"constant_prefix": "WPGRAPHQL_WOOCOMMERCE_VENDOR",
|
|
"delete_vendor_files": true,
|
|
"include_modified_date": false,
|
|
"packages" : [
|
|
"firebase/php-jwt"
|
|
],
|
|
"exclude_from_prefix": {
|
|
"file_patterns": []
|
|
}
|
|
}
|
|
}
|
|
}
|