wp2static/composer.json

84 lines
2.8 KiB
JSON

{
"name": "wp2static/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"
},
"repositories": [
{
"type": "pear",
"url": "https://pear.php.net"
},
{
"type": "vcs",
"url": "https://github.com/leonstafford/wordpress-stubs.git"
}
],
"require": {
"php": ">=7.0",
"pear/net_url2": "^2.1.2",
"sabberworm/php-css-parser": "^8.3.0"
},
"require-dev": {
"phpstan/phpstan-shim": "^0.11.8",
"thecodingmachine/phpstan-strict-rules": "*",
"giacocorsiglia/wordpress-stubs": "dev-master",
"squizlabs/php_codesniffer": "*",
"phpunit/phpunit": "*",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"wp-coding-standards/wpcs": "*",
"jakub-onderka/php-parallel-lint": "*",
"10up/wp_mock": "^0.4.2"
},
"autoload": {
"psr-4": {
"WP2Static\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PHPStan\\WordPress\\": "tests/phpstan/",
"WP2Static\\": "src/"
}
},
"config": {
"platform": {
"php": "7.2.17"
},
"preferred-install": {
"*": "dist"
},
"classmap-authoritative": true
},
"scripts": {
"phpstan": "php -d memory_limit=-1 ./vendor/bin/phpstan analyse",
"phpcs": "vendor/bin/phpcs --standard=./tools/phpcs.xml --ignore=*/tests/*,*/coverage/*,*.js,*/node_modules/*,*/vendor/*,*/views/*.php ./",
"phpcbf": "vendor/bin/phpcbf --standard=./tools/phpcs.xml --ignore=*/tests/*,*/coverage/*,*.js,*/node_modules/*,*/vendor/*,*/views/*.php ./",
"phpunit": "vendor/bin/phpunit ./tests/unit/",
"coverage": "vendor/bin/phpunit tests/unit --coverage-html coverage --whitelist src/",
"lint": "vendor/bin/parallel-lint --exclude vendor .",
"eslint": "node_modules/eslint/bin/eslint.js views/wp2static-admin.js",
"test": [
"@lint",
"@phpcs",
"@phpstan",
"@eslint",
"@phpunit"
],
"build": "/bin/sh tools/build_release.sh",
"generate-pot": "wp i18n make-pot . languages/static-html-output-plugin.pot"
}
}