161 lines
4.1 KiB
JSON
161 lines
4.1 KiB
JSON
{
|
|
"name": "woocommerce/woocommerce",
|
|
"description": "An eCommerce toolkit that helps you sell anything. Beautifully.",
|
|
"homepage": "https://woocommerce.com/",
|
|
"version": "9.2.0",
|
|
"type": "wordpress-plugin",
|
|
"license": "GPL-3.0-or-later",
|
|
"prefer-stable": true,
|
|
"minimum-stability": "dev",
|
|
"repositories": [
|
|
{
|
|
"type": "path",
|
|
"url": "lib"
|
|
},
|
|
{
|
|
"type": "path",
|
|
"url": "../../packages/php/monorepo-plugin"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=7.4",
|
|
"automattic/jetpack-autoloader": "2.11.18",
|
|
"automattic/jetpack-config": "1.15.2",
|
|
"automattic/jetpack-connection": "^1.57",
|
|
"automattic/jetpack-constants": "^1.6.22",
|
|
"composer/installers": "^1.9",
|
|
"maxmind-db/reader": "^1.11",
|
|
"pelago/emogrifier": "^6.0",
|
|
"woocommerce/action-scheduler": "3.7.4"
|
|
},
|
|
"require-dev": {
|
|
"automattic/jetpack-changelogger": "^3.3.0",
|
|
"bamarni/composer-bin-plugin": "^1.4",
|
|
"dms/phpunit-arraysubset-asserts": "^0.4.0",
|
|
"mockery/mockery": "1.6.6",
|
|
"phpunit/phpunit": "^9.6",
|
|
"sebastian/comparator": "^4.0",
|
|
"spatie/phpunit-watcher": "^1.23",
|
|
"woocommerce/monorepo-plugin": "*",
|
|
"yoast/phpunit-polyfills": "^2.0"
|
|
},
|
|
"config": {
|
|
"preferred-install": {
|
|
"woocommerce/action-scheduler": "dist"
|
|
},
|
|
"sort-packages": true,
|
|
"platform": {
|
|
"php": "7.4"
|
|
},
|
|
"allow-plugins": {
|
|
"automattic/jetpack-autoloader": true,
|
|
"composer/installers": true,
|
|
"bamarni/composer-bin-plugin": true,
|
|
"woocommerce/monorepo-plugin": true
|
|
}
|
|
},
|
|
"autoload": {
|
|
"exclude-from-classmap": [
|
|
"includes/legacy",
|
|
"includes/libraries"
|
|
],
|
|
"classmap": [
|
|
"includes/rest-api"
|
|
],
|
|
"psr-4": {
|
|
"Automattic\\WooCommerce\\": "src/",
|
|
"Automattic\\WooCommerce\\Vendor\\": "lib/packages/"
|
|
},
|
|
"psr-0": {
|
|
"Automattic\\WooCommerce\\Vendor\\": "lib/packages/"
|
|
},
|
|
"files": [
|
|
"src/StoreApi/deprecated.php",
|
|
"src/StoreApi/functions.php",
|
|
"src/Blocks/Domain/Services/functions.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Automattic\\WooCommerce\\Tests\\": "tests/php/src/",
|
|
"Automattic\\WooCommerce\\Testing\\Tools\\": "tests/Tools/"
|
|
},
|
|
"classmap": [
|
|
"tests/legacy/unit-tests/rest-api/Helpers"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"post-install-cmd": [
|
|
"@composer bin all install --ansi",
|
|
"sh ./bin/package-update.sh"
|
|
],
|
|
"post-update-cmd": [
|
|
"@composer bin all update --ansi",
|
|
"sh ./bin/package-update.sh"
|
|
],
|
|
"test": [
|
|
"phpunit"
|
|
],
|
|
"phpcs": [
|
|
"phpcs -s -p"
|
|
],
|
|
"lint": [
|
|
"chg=$(git diff --relative --name-only -- '*.php'); [[ -z $chg ]] || phpcs-changed -s --git --git-unstaged $chg"
|
|
],
|
|
"lint-staged": [
|
|
"chg=$(git diff HEAD --relative --name-only -- '*.php'); [[ -z $chg ]] || phpcs-changed -s --git $chg"
|
|
],
|
|
"lint-branch": [
|
|
"bash ./bin/lint-branch.sh"
|
|
],
|
|
"phpcbf": [
|
|
"phpcbf -p"
|
|
],
|
|
"makepot-audit": [
|
|
"wp --allow-root i18n make-pot . --include=\"woocommerce.php,client,i18n,includes,lib,packages,patterns,src,templates\" --slug=woocommerce"
|
|
],
|
|
"makepot": [
|
|
"@makepot-audit --skip-audit"
|
|
],
|
|
"bin": [
|
|
"echo 'bin not installed'"
|
|
],
|
|
"build-lib": [
|
|
"sh ./bin/build-lib.sh"
|
|
]
|
|
},
|
|
"extra": {
|
|
"installer-paths": {
|
|
"packages/{$name}": [
|
|
"woocommerce/action-scheduler"
|
|
]
|
|
},
|
|
"scripts-description": {
|
|
"test": "Run unit tests",
|
|
"phpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer",
|
|
"phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier",
|
|
"makepot-audit": "Generate i18n/languages/woocommerce.pot file and run audit",
|
|
"makepot": "Generate i18n/languages/woocommerce.pot file"
|
|
},
|
|
"bamarni-bin": {
|
|
"target-directory": "bin/composer"
|
|
},
|
|
"changelogger": {
|
|
"formatter": {
|
|
"filename": "../../tools/changelogger/class-legacy-core-formatter.php"
|
|
},
|
|
"types": {
|
|
"fix": "Fixes an existing bug",
|
|
"add": "Adds functionality",
|
|
"update": "Update existing functionality",
|
|
"dev": "Development related task",
|
|
"tweak": "A minor adjustment to the codebase",
|
|
"performance": "Address performance issues",
|
|
"enhancement": "Improve existing functionality"
|
|
},
|
|
"versioning": "wordpress",
|
|
"changelog": "NEXT_CHANGELOG.md"
|
|
}
|
|
}
|
|
}
|