103 lines
2.9 KiB
JSON
103 lines
2.9 KiB
JSON
{
|
|
"name": "woocommerce/woocommerce",
|
|
"description": "An eCommerce toolkit that helps you sell anything. Beautifully.",
|
|
"homepage": "https://woocommerce.com/",
|
|
"type": "wordpress-plugin",
|
|
"license": "GPL-3.0-or-later",
|
|
"prefer-stable": true,
|
|
"minimum-stability": "dev",
|
|
"require": {
|
|
"php": ">=7.0",
|
|
"automattic/jetpack-autoloader": "2.2.0",
|
|
"automattic/jetpack-constants": "1.4.0",
|
|
"composer/installers": "1.7.0",
|
|
"maxmind-db/reader": "1.6.0",
|
|
"pelago/emogrifier": "3.1.0",
|
|
"psr/container": "1.0.0",
|
|
"woocommerce/action-scheduler": "3.1.6",
|
|
"woocommerce/woocommerce-admin": "1.6.0-beta.1",
|
|
"woocommerce/woocommerce-blocks": "3.4.0"
|
|
},
|
|
"require-dev": {
|
|
"bamarni/composer-bin-plugin": "^1.4"
|
|
},
|
|
"config": {
|
|
"platform": {
|
|
"php": "7.1"
|
|
},
|
|
"preferred-install": {
|
|
"woocommerce/action-scheduler": "dist",
|
|
"woocommerce/woocommerce-rest-api": "dist",
|
|
"woocommerce/woocommerce-blocks": "dist"
|
|
},
|
|
"sort-packages": true
|
|
},
|
|
"autoload": {
|
|
"exclude-from-classmap": [
|
|
"includes/legacy",
|
|
"includes/libraries"
|
|
],
|
|
"classmap": [
|
|
"includes/rest-api"
|
|
],
|
|
"psr-4": {
|
|
"Automattic\\WooCommerce\\": "src/"
|
|
}
|
|
},
|
|
"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"
|
|
],
|
|
"phpcs-pre-commit": [
|
|
"phpcs -s -p -n"
|
|
],
|
|
"phpcbf": [
|
|
"phpcbf -p"
|
|
],
|
|
"makepot-audit": [
|
|
"wp --allow-root i18n make-pot . --exclude=\".github,.wordpress-org,bin,sample-data,node_modules,tests\" --slug=woocommerce"
|
|
],
|
|
"makepot": [
|
|
"@makepot-audit --skip-audit"
|
|
]
|
|
},
|
|
"extra": {
|
|
"installer-paths": {
|
|
"packages/action-scheduler": ["woocommerce/action-scheduler"],
|
|
"packages/woocommerce-rest-api": ["woocommerce/woocommerce-rest-api"],
|
|
"packages/woocommerce-blocks": ["woocommerce/woocommerce-blocks"],
|
|
"packages/woocommerce-admin": ["woocommerce/woocommerce-admin"]
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|