Skip to content
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

Fix Composer configuration #1203

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
45 changes: 24 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
{
"name": "myparcelnl/woocommerce",
"version": "5.0.0",
"type": "wordpress-plugin",
"description": "Export your WooCommerce orders to MyParcel and print labels",
"license": "MIT",
"require": {
"myparcelnl/pdk": "^2.0.0",
"php": ">= 7.1",
"guzzlehttp/guzzle": "^7.5.0",
"psr/log": "*"
},
"scripts": {
"analyse": "php -dmemory_limit=-1 vendor/bin/phpstan analyse",
"analyse:generate": "composer run analyse -- --generate-baseline phpstan-baseline.php --allow-empty-baseline",
"analyze": "composer run analyse",
"analyze:generate": "composer run analyse:generate",
"test": "vendor/bin/pest",
"test:coverage": "php -dpcov.enabled=1 vendor/bin/pest --coverage-clover=coverage.xml"
"myparcelnl/pdk": "^2.0.0",
"psr/log": "^1.1 || ^2.0 || ^3.0"
},
"require-dev": {
"humbug/php-scoper": "^0.17.5",
"pestphp/pest": ">= 1",
"pestphp/pest": ">= 1.0",
"php-stubs/woocommerce-stubs": "^8.0",
"phpstan/phpstan": "^1.10",
"spatie/pest-plugin-snapshots": ">= 1",
"spatie/pest-plugin-snapshots": ">= 1.0",
"szepeviktor/phpstan-wordpress": "^1.3"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"MyParcelNL\\WooCommerce\\": "src"
"MyParcelNL\\WooCommerce\\": "src/"
},
"files": [
"src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"": "tests/factories",
"MyParcelNL\\Pdk\\": "vendor/myparcelnl/pdk/tests/factories",
"MyParcelNL\\Pdk\\Tests\\": "vendor/myparcelnl/pdk/tests",
"MyParcelNL\\WooCommerce\\": "tests/Unit",
"MyParcelNL\\WooCommerce\\Tests\\": "tests"
"": "tests/factories/",
"MyParcelNL\\Pdk\\": "vendor/myparcelnl/pdk/tests/factories/",
"MyParcelNL\\Pdk\\Tests\\": "vendor/myparcelnl/pdk/tests/",
"MyParcelNL\\WooCommerce\\": "tests/Unit/",
"MyParcelNL\\WooCommerce\\Tests\\": "tests/"
},
"files": [
"vendor/myparcelnl/pdk/tests/functions.php",
Expand All @@ -47,9 +42,17 @@
]
},
"config": {
"prepend-autoloader": false,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"prepend-autoloader": false
},
"scripts": {
"analyse": "phpstan analyse --memory-limit=2G",
"analyse:generate": "@analyse --generate-baseline phpstan-baseline.php --allow-empty-baseline",
"analyze": "@analyse",
"analyze:generate": "@analyse:generate",
"test": "pest",
"test:coverage": "php -dpcov.enabled=1 vendor/bin/pest --coverage-clover=coverage.xml"
}
}
8 changes: 5 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.