-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 3.18 KB
/
package.json
File metadata and controls
75 lines (75 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"name": "woocommerce-paypal-payments",
"version": "4.0.2",
"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"
}
}