-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathpackage.json
More file actions
108 lines (108 loc) · 5.7 KB
/
package.json
File metadata and controls
108 lines (108 loc) · 5.7 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"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",
"e2e:setup:tests": "npm install && npx playwright install",
"e2e:test:plugin-foundation": "npx playwright test --workers=1 --project \"plugin-foundation\"",
"e2e:test:dev": "npx playwright test --grep=\"@Dev\"",
"e2e:test:smoke": "npx playwright test --grep=\"@Smoke\"",
"e2e:test:critical": "npx playwright test --grep=\"@Critical\"",
"e2e:test:stress": "npx playwright test --project=\"stress\"",
"e2e:test:all": "npx playwright test --workers=1 --project \"all\"",
"e2e:test:shard:plugin-foundation": "npx playwright test --project \"shard:plugin-foundation\"",
"e2e:test:shard:onboarding-settings": "npx playwright test --project \"shard:onboarding-settings\"",
"e2e:test:shard:transactions": "npx playwright test --project \"shard:transactions\"",
"e2e:test:shard:transactions-googlepay": "npx playwright test --project \"shard:transactions-googlepay\"",
"e2e:test:shard:refund": "npx playwright test --project \"shard:refund\"",
"e2e:test:shard:vaulting": "npx playwright test --project \"shard:vaulting\"",
"e2e:test:shard:subscription": "npx playwright test --project \"shard:subscription\"",
"e2e:env:reset": "npx playwright test --grep=\"e2e:env:reset;\"",
"e2e:env:reset:pcp:usa": "npx playwright test --grep=\"e2e:env:reset;|setup:pcp:usa;\"",
"e2e:env:reset:pcp:germany": "npx playwright test --grep=\"e2e:env:reset;|setup:pcp:germany;\"",
"e2e:env:reset:pcp:mexico": "npx playwright test --grep=\"e2e:env:reset;|setup:pcp:mexico;\"",
"e2e:env:setup:wc": "npx playwright test woocommerce.setup",
"e2e:env:setup:pcp:usa": "npx playwright test --grep=\"setup:pcp:usa;\"",
"e2e:env:setup:pcp:germany": "npx playwright test --grep=\"setup:pcp:germany;\"",
"e2e:env:setup:pcp:mexico": "npx playwright test --grep=\"setup:pcp:mexico;\"",
"e2e:env:setup:pcp:update": "npx playwright test --grep=\"setup:pcp:update;\"",
"e2e:env:setup:checkout:block": "npx playwright test --grep=\"setup:checkout:block;\"",
"e2e:env:setup:checkout:classic": "npx playwright test --grep=\"setup:checkout:classic;\"",
"e2e:env:setup:tax:inc": "npx playwright test --grep=\"setup:tax:inc;\"",
"e2e:env:setup:tax:exc": "npx playwright test --grep=\"setup:tax:exc;\"",
"e2e:lint:md:fix": "wp-scripts lint-md-docs --fix ./tests/qa/**/*.md ./E2E-TESTS.md",
"e2e:lint:js:fix": "wp-scripts lint-js --fix --ext .ts,.tsx,.mjs ./tests/qa"
},
"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",
"react": "^18",
"react-dom": "^18",
"react-select": "^5.10.2",
"uuid": "^11"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.29.5",
"@babel/preset-react": "^7.28.5",
"@inpsyde/playwright-utils": "^5.1.0",
"@playwright/test": "^1.59.0",
"@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",
"@types/node": "^20.8.4",
"@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/env": "^10.30.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"
}
}