-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
87 lines (87 loc) · 3.01 KB
/
composer.json
File metadata and controls
87 lines (87 loc) · 3.01 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
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
{
"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": "*",
"yahnis-elsts/plugin-update-checker": "^5.6",
"masterminds/html5": "^2.9",
"phlak/splat": "^5.0",
"symfony/finder": "=6.0.3"
},
"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": "*",
"mikey179/vfsstream": "*",
"php-stubs/wp-cli-stubs": "^2.12"
},
"autoload": {
"psr-4": {
"WP2Static\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"WP2Static\\": "tests/integration/"
}
},
"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": "php ./vendor/bin/phpcbf -d memory_limit=512M --standard=./phpcs.xml --extensions=php src tests views *.php",
"phpcs": "php ./vendor/bin/phpcs -d memory_limit=512M -s --standard=./phpcs.xml --extensions=php src tests views *.php",
"phpunit": "php ./vendor/bin/phpunit ./tests/unit/",
"coverage": "XDEBUG_MODE=coverage php ./vendor/bin/phpunit tests/unit --coverage-html coverage --whitelist src/",
"lint": "php ./vendor/bin/parallel-lint --exclude integration-tests --exclude vendor .",
"test": [
"composer validate --strict",
"@lint",
"@phpcs",
"@phpstan",
"@phpunit"
],
"test-integration": "nix flake check ./dev",
"test-integration-live": "WORDPRESS_DIR=$(realpath ./dev/data/wordpress1) php ./vendor/bin/phpunit tests/integration",
"build": "nix build .#plugin"
}
}