mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-25 01:02:18 +08:00
75 lines
3.2 KiB
JSON
75 lines
3.2 KiB
JSON
{
|
|
"name": "woocommerce-paypal-payments",
|
|
"version": "4.0.3",
|
|
"description": "WooCommerce PayPal Payments",
|
|
"repository": "https://github.com/woocommerce/woocommerce-paypal-payments",
|
|
"license": "GPL-2.0",
|
|
"author": "WooCommerce",
|
|
"scripts": {
|
|
"ddev:setup": "ddev start && ddev orchestrate",
|
|
"ddev:reset": "ddev orchestrate -f",
|
|
"ddev:install": "ddev composer install && ddev npm ci && ddev npm run build",
|
|
"lint-js": "wp-scripts lint-js",
|
|
"test:unit-js": "wp-scripts test-unit-js --config ./tests/js/jest.config.json",
|
|
"test:unit-js:coverage": "wp-scripts test-unit-js --config ./tests/js/jest.config.json --coverage",
|
|
"composer-update": "composer update && composer update --lock",
|
|
"unit-tests": "vendor/bin/phpunit",
|
|
"ddev:unit-tests:coverage": "ddev xdebug on && ddev exec XDEBUG_MODE=coverage phpunit --coverage-html coverage/ --coverage-clover coverage/report.xml",
|
|
"integration-tests": "(cp -n .env.integration.example .env.integration || true) && php tests/integration/PHPUnit/setup.php && vendor/bin/phpunit -c tests/integration/phpunit.xml.dist",
|
|
"test": "npm run unit-tests && npm run integration-tests",
|
|
"tdd": "sh -c 'vendor/bin/phpunit --stop-on-failure -v ${1:+--filter $@}' --",
|
|
"tdd:integration": "sh -c 'vendor/bin/phpunit -c tests/integration/phpunit.xml.dist --stop-on-failure -v ${1:+--filter $@}' --",
|
|
"lint": "npm run phpcs && npm run phpstan",
|
|
"phpcs": "vendor/bin/phpcs --parallel=8 -s --runtime-set ignore_warnings_on_exit 1",
|
|
"phpstan": "vendor/bin/phpstan analyze --memory-limit=2G",
|
|
"fix-lint": "vendor/bin/phpcbf",
|
|
"build": "wp-scripts build",
|
|
"watch-js": "wp-scripts start"
|
|
},
|
|
"config": {
|
|
"wp_org_slug": "woocommerce-paypal-payments"
|
|
},
|
|
"dependencies": {
|
|
"@paypal/paypal-js": "^8.1.3",
|
|
"@paypal/react-paypal-js": "^8.9.2",
|
|
"classnames": "^2.5.1",
|
|
"core-js": "^3.39",
|
|
"deepmerge": "^4.3",
|
|
"dotenv": "^16.0.3",
|
|
"escape-html": "^1.0.3",
|
|
"formdata-polyfill": "^4.0.10",
|
|
"playwright": "^1.43.0",
|
|
"react": "^18",
|
|
"react-dom": "^18",
|
|
"react-select": "^5.10.2",
|
|
"uuid": "^11"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/preset-react": "^7.28.5",
|
|
"@testing-library/dom": "^10.1.0",
|
|
"@testing-library/jest-dom": "^6.4.6",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@woocommerce/dependency-extraction-webpack-plugin": "^2.2.0",
|
|
"@wordpress/a11y": "^4.40.0",
|
|
"@wordpress/api-fetch": "^7.40.0",
|
|
"@wordpress/block-editor": "^14.21.0",
|
|
"@wordpress/blocks": "^15.13.0",
|
|
"@wordpress/components": "^32.2.0",
|
|
"@wordpress/data": "^10.37.0",
|
|
"@wordpress/data-controls": "^4.37.0",
|
|
"@wordpress/element": "^6.1.0",
|
|
"@wordpress/i18n": "^6.10.0",
|
|
"@wordpress/icons": "^11.4.0",
|
|
"@wordpress/jest-preset-default": "^12.37.0",
|
|
"@wordpress/notices": "^5.40.0",
|
|
"@wordpress/plugins": "^7.40.0",
|
|
"@wordpress/primitives": "^4.40.0",
|
|
"@wordpress/scripts": "^31.2.0",
|
|
"@wordpress/url": "^4.40.0",
|
|
"babel-plugin-explicit-exports-references": "^1.0.2",
|
|
"eslint-import-resolver-webpack": "^0.13.10",
|
|
"jquery": "^3.7.1"
|
|
}
|
|
}
|