forked from elementor/wp2static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
83 lines (83 loc) · 3.63 KB
/
composer.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
{
"name": "leonstafford/wp2static",
"description": "Security & Performance via static website publishing.",
"homepage": "https://wp2static.com",
"license": "UNLICENSE",
"authors": [
{
"name": "Leon Stafford",
"email": "[email protected]",
"homepage": "https://ljs.dev"
}
],
"type": "wordpress-plugin",
"support": {
"issues": "https://github.com/WP2Static/wp2static/issues",
"forum": "https://wp2static.com/community",
"docs": "https://wp2static.com/documentation",
"source": "https://github.com/WP2Static/wp2static"
},
"replace": {
"guzzlehttp/guzzle":"*",
"guzzlehttp/promises":"*",
"guzzlehttp/psr7":"*"
},
"require": {
"php": ">=7.4",
"wa72/url": "^0.7.1",
"leonstafford/wp2staticguzzle": "^7.2.0",
"symfony/polyfill-php80": "^1.27.0",
"ext-mbstring": "*",
"ext-simplexml": "*",
"lib-libxml": "*"
},
"require-dev": {
"thecodingmachine/phpstan-strict-rules": "*",
"szepeviktor/phpstan-wordpress": "*",
"squizlabs/php_codesniffer": "*",
"phpunit/phpunit": "9.5.24",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/php-compatibility": "*",
"php-parallel-lint/php-parallel-lint": "*",
"10up/wp_mock": "^0.5",
"mikey179/vfsstream": "^1.6"
},
"autoload": {
"psr-4": {
"WP2Static\\": "src/"
}
},
"config": {
"preferred-install": {
"*": "dist"
},
"classmap-authoritative": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"phpstan": "php -d memory_limit=-1 ./vendor/bin/phpstan analyse",
"phpcbf": "vendor/bin/phpcbf --standard=./tools/phpcs.xml --ignore=*/js/*,*/tests/phpstan/*,*/admin/*,*/coverage/*,*.js,*/vendor/*,*/integration-tests/bedrock/*,*/integration-tests/result*,*/integration-tests/wordpress/* ./",
"phpcs": "vendor/bin/phpcs -s --standard=./tools/phpcs.xml --ignore=*/tests/phpstan/*,*/admin/*,**/coverage/*,*.js,*/vendor/*,*/integration-tests/bedrock/*,*/integration-tests/result*,*/integration-tests/wordpress/* ./",
"php74": "vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.4 --ignore=*/tests/*,*/admin/*,**/coverage/*,*.js,*/vendor/*,*/integration-tests/bedrock/*,*/integration-tests/result*,*/integration-tests/wordpress/* ./",
"php80": "vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 8.0 --ignore=*/tests/*,*/admin/*,**/coverage/*,*.js,*/vendor/*,*/integration-tests/bedrock/*,*/integration-tests/result*,*/integration-tests/wordpress/* ./",
"php81": "vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 8.1 --ignore=*/tests/*,*/admin/*,**/coverage/*,*.js,*/vendor/*,*/integration-tests/bedrock/*,*/integration-tests/result*,*/integration-tests/wordpress/* ./",
"phpunit": "vendor/bin/phpunit ./tests/unit/",
"coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit tests/unit --coverage-html coverage --whitelist src/",
"lint": "vendor/bin/parallel-lint --exclude integration-tests --exclude vendor .",
"test": [
"composer validate --strict",
"@lint",
"@phpcs",
"@php74",
"@php80",
"@php81",
"@phpstan",
"@phpunit"
],
"test-integration": "integration-tests/test-matrix.sh",
"build": "/bin/sh tools/build_release.sh"
}
}