-
Notifications
You must be signed in to change notification settings - Fork 69
/
package.json
224 lines (224 loc) · 9.49 KB
/
package.json
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"name": "woocommerce-payments",
"version": "8.4.0",
"main": "webpack.config.js",
"author": "Automattic",
"license": "GPL-3.0-or-later",
"repository": "github:Automattic/woocommerce-payments",
"engines": {
"npm": ">=8.15.0",
"node": ">=20.11.1"
},
"config": {
"wp_org_slug": "woocommerce-payments",
"translate": true,
"translate_project": "woocommerce/woocommerce-payments"
},
"scripts": {
"postinstall": "composer install",
"prepare": "is-ci || husky install",
"build": "npm run build:deps && npm run build:release",
"build:client": "NODE_ENV=production webpack",
"build:deps": "rm -rf vendor && composer install --no-dev --optimize-autoloader",
"build:release": "node tasks/release.js && mv release/$npm_package_name.zip .",
"postbuild:client": "npm run i18n:pot && npm run i18n:build && npm run assets:rtl",
"i18n:pot": "wpi18n makepot --domain-path languages --pot-file woocommerce-payments.pot --type plugin --main-file woocommerce-payments.php --exclude bin,dist,docker,node_modules,release,tasks,tests,vendor",
"i18n:build": "php bin/combine-pot-files.php languages/woocommerce-payments-client.pot languages/woocommerce-payments.pot",
"assets:rtl": "rtlcss assets/css/admin.css && rtlcss assets/css/success.css",
"test": "npm run test:js && npm run test:php",
"test:js": "wp-scripts test-unit-js --config tests/js/jest.config.js",
"test:watch": "npm run test:js -- --watch",
"test:debug": "wp-scripts --inspect-brk test-unit-js --runInBand --no-cache --config tests/js/jest.config.js",
"test:e2e-setup": "./tests/e2e/env/setup.sh",
"test:e2e-down": "./tests/e2e/env/down.sh",
"test:e2e-up": "./tests/e2e/env/up.sh",
"test:e2e-cleanup": "./tests/e2e/env/cleanup.sh",
"test:e2e-reset": "npm run test:e2e-down && npm run test:e2e-cleanup",
"test:e2e": "NODE_CONFIG_DIR='tests/e2e/config' JEST_PUPPETEER_CONFIG='tests/e2e/config/jest-puppeteer-headless.config.js' wp-scripts test-e2e --config tests/e2e/config/jest.config.js",
"test:e2e-dev": "NODE_CONFIG_DIR='tests/e2e/config' JEST_PUPPETEER_CONFIG='tests/e2e/config/jest-puppeteer.config.js' wp-scripts test-e2e --config tests/e2e/config/jest.config.js --puppeteer-interactive",
"test:e2e-performance": "NODE_CONFIG_DIR='tests/e2e/config' wp-scripts test-e2e --config tests/e2e/config/jest.performance.config.js",
"test:e2e-pw": "./tests/e2e-pw/test-e2e-pw.sh",
"test:e2e-pw-update-snapshots": "npm run test:e2e-pw -- --update-snapshots",
"test:e2e-pw-ui": "./tests/e2e-pw/test-e2e-pw-ui.sh",
"test:e2e-pw-ci": "npx playwright test --config=tests/e2e-pw/playwright.config.ts --grep-invert @todo",
"test:update-snapshots": "npm run test:js -- --updateSnapshot",
"test:php": "./bin/run-tests.sh",
"test:php-coverage": "./bin/check-test-coverage.sh",
"test:php-coverage-src": "./bin/check-test-coverage.sh src",
"test:php-watch": "npm run test:php -- -w",
"test:qit-security": "npm run build:release && ./tests/qit/security.sh",
"test:qit-phpstan": "npm run build:release && ./tests/qit/phpstan.sh",
"test:qit-phpstan-local": "npm run build:release && ./tests/qit/phpstan.sh --local",
"watch": "webpack --watch",
"hmr": "webpack server",
"start": "npm run watch",
"dev": "npm run up && npm run watch",
"up:recreate": "docker compose up --build --force-recreate -d && ./bin/docker-setup.sh",
"up": "docker compose up --build -d",
"down": "docker compose down",
"wp": "docker compose exec -u www-data wordpress wp",
"install-if-deps-outdated": "node bin/install-if-deps-outdated.js",
"lint": "npm run lint:js && npm run lint:css && npm run lint:php",
"lint:css": "stylelint 'client/**/*.scss' 'client/**/*.css' 'assets/**/*.scss' 'assets/**/*.css'",
"lint:js": "tsc --noEmit && eslint . --ext=js,jsx,ts,tsx",
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"format": "npm run format:js && npm run format:css",
"format:js": "npm run format:provided '**/*.js' '**/*.ts' '**/*.tsx'",
"format:css": "npm run format:provided '**/*.scss' '**/*.css'",
"format:provided": "prettier --write",
"tube:setup": "./bin/jurassic-tube-setup.sh",
"tube:start": "./docker/bin/jt/tunnel.sh",
"tube:stop": "./docker/bin/jt/tunnel.sh break",
"psalm": "./bin/run-psalm.sh",
"xdebug:toggle": "docker compose exec -u root wordpress /var/www/html/wp-content/plugins/woocommerce-payments/bin/xdebug-toggle.sh",
"changelog": "./vendor/bin/changelogger add",
"cli": "./bin/cli.sh"
},
"dependencies": {
"@automattic/interpolate-components": "1.2.1",
"@fingerprintjs/fingerprintjs": "3.4.1",
"@stripe/connect-js": "3.3.16",
"@stripe/react-connect-js": "3.3.17",
"@stripe/react-stripe-js": "2.5.1",
"@stripe/stripe-js": "1.15.1",
"@woocommerce/explat": "2.3.0",
"@woocommerce/number": "2.4.0",
"@woocommerce/onboarding": "3.5.0",
"canvas-confetti": "1.9.2",
"compare-versions": "6.1.1",
"debug": "4.3.5",
"intl-tel-input": "17.0.15",
"lodash": "4.17.21",
"validator": "13.12.0"
},
"devDependencies": {
"@automattic/color-studio": "2.3.1",
"@jest/test-sequencer": "29.5.0",
"@playwright/test": "1.43.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "11.2.5",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/user-event": "10.4.1",
"@types/canvas-confetti": "1.6.4",
"@types/intl-tel-input": "17.0.4",
"@types/lodash": "4.14.170",
"@types/node": "20.9.0",
"@types/react": "17.0.2",
"@types/react-transition-group": "4.4.6",
"@types/wordpress__components": "19.10.5",
"@types/wordpress__data": "6.0.2",
"@types/wordpress__data-controls": "2.2.0",
"@typescript-eslint/eslint-plugin": "4.15.2",
"@typescript-eslint/parser": "4.15.2",
"@woocommerce/api": "0.2.0",
"@woocommerce/components": "12.3.0",
"@woocommerce/csv-export": "1.9.0",
"@woocommerce/currency": "4.3.0",
"@woocommerce/date": "4.2.0",
"@woocommerce/dependency-extraction-webpack-plugin": "2.2.0",
"@woocommerce/e2e-environment": "0.2.3",
"@woocommerce/e2e-utils": "0.2.0",
"@woocommerce/eslint-plugin": "1.1.0",
"@woocommerce/experimental": "1.2.0",
"@woocommerce/settings": "1.0.0",
"@wordpress/api-fetch": "6.3.1",
"@wordpress/babel-plugin-makepot": "4.3.2",
"@wordpress/babel-preset-default": "8.3.0",
"@wordpress/base-styles": "4.3.1",
"@wordpress/block-editor": "8.5.10",
"@wordpress/blocks": "11.5.3",
"@wordpress/browserslist-config": "5.3.0",
"@wordpress/components": "19.8.5",
"@wordpress/core-data": "7.3.0",
"@wordpress/data": "6.6.1",
"@wordpress/data-controls": "2.6.1",
"@wordpress/date": "4.5.0",
"@wordpress/dom-ready": "3.6.1",
"@wordpress/e2e-test-utils": "8.6.0",
"@wordpress/element": "4.4.1",
"@wordpress/hooks": "3.6.1",
"@wordpress/html-entities": "3.6.1",
"@wordpress/i18n": "4.6.1",
"@wordpress/icons": "8.2.3",
"@wordpress/jest-preset-default": "8.1.2",
"@wordpress/plugins": "4.4.3",
"@wordpress/primitives": "3.30.0",
"@wordpress/scripts": "28.3.0",
"@wordpress/url": "3.7.1",
"archiver": "5.2.0",
"babel-eslint": "10.1.0",
"babel-loader": "8.2.2",
"chalk": "4.1.2",
"classnames": "2.3.1",
"config": "3.3.6",
"core-js": "3.9.0",
"crypto-browserify": "3.12.0",
"css-loader": "6.3.0",
"dotenv": "8.2.0",
"eslint": "7.30.0",
"eslint-config-prettier": "7.2.0",
"eslint-config-wpcalypso": "4.0.1",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-jest": "24.3.6",
"eslint-plugin-jsdoc-alignment": "0.0.5",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "3.4.1",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-wpcalypso": "5.0.0",
"expect-puppeteer": "10.0.0",
"gridicons": "3.4.2",
"husky": "8.0.1",
"is-ci": "3.0.0",
"iti": "0.6.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-environment-puppeteer": "10.0.1",
"jest-puppeteer": "10.0.1",
"lint-staged": "10.5.4",
"mini-css-extract-plugin": "2.3.0",
"moment": "2.29.4",
"node-wp-i18n": "1.2.5",
"postcss": "8.3.5",
"prettier": "npm:[email protected]",
"process": "0.11.10",
"puppeteer": "19.11.1",
"qrcode.react": "3.1.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-refresh": "0.14.0",
"react-test-renderer": "16.14.0",
"react-transition-group": "4.4.5",
"rtlcss": "4.1.1",
"sass": "1.43.4",
"sass-loader": "12.1.0",
"shelljs": "0.8.5",
"source-map-loader": "1.1.3",
"stream-browserify": "3.0.0",
"stylelint": "13.11.0",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-wordpress": "17.0.0",
"tinycolor2": "1.6.0",
"ts-jest": "29.2.2",
"ts-loader": "9.2.6",
"typescript": "4.3.5",
"util": "0.12.4",
"webpack": "5.93.0",
"webpack-cli": "4.10.0",
"webpack-dev-server": "4.9.3",
"webpack-merge": "5.8.0",
"yarnhook": "0.5.1"
},
"overrides": {
"@automattic/puppeteer-utils": "github:Automattic/puppeteer-utils#update/babel-deps",
"@woocommerce/components": {
"@woocommerce/csv-export": "1.9.0",
"@woocommerce/currency": "4.3.0"
},
"@wordpress/scripts": {
"@wordpress/eslint-plugin": "8.0.2"
}
}
}