mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-29 05:51:53 +08:00
82 lines
3.6 KiB
JSON
82 lines
3.6 KiB
JSON
{
|
|
"name": "leonstafford/wp2static",
|
|
"description": "Security & Performance via static website publishing.",
|
|
"homepage": "https://wp2static.com",
|
|
"license": "UNLICENSE",
|
|
"authors": [
|
|
{
|
|
"name": "Leon Stafford",
|
|
"email": "me@ljs.dev",
|
|
"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",
|
|
"ext-mbstring": "*",
|
|
"ext-simplexml": "*",
|
|
"lib-libxml": "*"
|
|
},
|
|
"require-dev": {
|
|
"thecodingmachine/phpstan-strict-rules": "*",
|
|
"szepeviktor/phpstan-wordpress": "*",
|
|
"squizlabs/php_codesniffer": "*",
|
|
"phpunit/phpunit": "*",
|
|
"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"
|
|
}
|
|
}
|