-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
50 lines (50 loc) · 1.65 KB
/
Copy pathpackage.json
File metadata and controls
50 lines (50 loc) · 1.65 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
{
"name": "woocommerce-fraud-protection",
"version": "0.1.5",
"description": "A plugin to protect WooCommerce from fraud.",
"author": "Automattic",
"license": "GPL-3.0-or-later",
"files": [
"assets",
"src",
"vendor",
"changelog.txt",
"woocommerce-fraud-protection-loader.php",
"woocommerce-fraud-protection.php"
],
"scripts": {
"build": "wp-scripts build",
"build:release": "wp-scripts build --mode=production && npm run plugin-zip",
"start": "wp-scripts start",
"lint": "npm run lint:js && npm run lint:css && npm run lint:php",
"lint:js": "wp-scripts lint-js assets/js",
"lint:css": "wp-scripts lint-style assets/css --allow-empty-input",
"lint:php": "vendor/bin/phpcs",
"lint:php:autofix": "vendor/bin/phpcbf",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"plugin-zip": "composer install --no-dev && wp-scripts plugin-zip && zip -d woocommerce-fraud-protection.zip woocommerce-fraud-protection/package.json woocommerce-fraud-protection/README.md && composer install",
"test": "npm run test:smoke && npm run test:php && npm run test:js",
"test:js": "wp-scripts test-unit-js",
"test:php": "vendor/bin/phpunit",
"test:php:env": "vendor/bin/phpunit",
"test:smoke": "tests/php/smoke/run.sh",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2G",
"phpstan:baseline": "vendor/bin/phpstan analyse --memory-limit=2G --generate-baseline=phpstan-baseline.neon"
},
"devDependencies": {
"@babel/runtime": "^7.24.0",
"@wordpress/scripts": "^31.7.0",
"jquery": "^3.7.1"
},
"engines": {
"node": "^20.11.1"
},
"jest": {
"testMatch": [
"**/tests/js/**/*.test.js"
],
"setupFilesAfterEnv": [
"./tests/js/setup.js"
]
}
}