Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
65 lines (65 loc) · 2.69 KB
/
Copy pathcomposer.json
File metadata and controls
65 lines (65 loc) · 2.69 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
{
"name": "uams-web/uams-plugin-template",
"description": "The starting point for a UAMS-Web WordPress plugin.",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"require": {
"php": ">=8.2"
},
"require-dev": {
"brain/monkey": "^2.7",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"laravel/pint": "^1.0",
"pestphp/pest": "^5.3",
"php-stubs/wordpress-stubs": "~6.8.0",
"phpstan/phpstan": "^2.0",
"rector/rector": "^2.0",
"szepeviktor/phpstan-wordpress": "^2.0",
"wp-coding-standards/wpcs": "^3.0"
},
"autoload-dev": {
"psr-4": {
"UAMSWeb\\PluginTemplate\\Tests\\": "tests/"
}
},
"config": {
"platform": {
"php": "8.4.27"
},
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"pestphp/pest-plugin": true
}
},
"scripts": {
"setup:integration": "@composer install --working-dir=tests/Integration",
"lint:floor": "@php scripts/lint-floor.php",
"stan": "phpstan analyse --memory-limit=1G",
"test": [
"@test:unit",
"@test:integration"
],
"test:unit": "pest",
"test:integration": "@php tests/Integration/vendor/bin/phpunit --configuration tests/Integration/phpunit.xml",
"test:phpcs": "phpcs",
"test:pint": "pint --test",
"test:refactor": "rector process --dry-run --no-progress-bar",
"fix:pint": "pint",
"build": "node scripts/build-zip.mjs",
"check:archive": "node scripts/check-download-archive.mjs"
},
"scripts-descriptions": {
"setup:integration": "Install the Integration suite's own Composer setup (PHPUnit 9.6, wp-phpunit, the polyfills).",
"lint:floor": "Parse every shipped PHP file with the PHP named in LINT_PHP (default: php), the supported floor.",
"stan": "Run PHPStan.",
"test": "Run both suites, each in its own process, so the Unit suite never sees WordPress.",
"test:unit": "Run the Pest suite that needs no WordPress and no database.",
"test:integration": "Run the PHPUnit 9.6 suite that boots WordPress through wp-phpunit against the test database.",
"test:phpcs": "Run the WordPress security sniffs.",
"test:pint": "Check formatting without changing files.",
"test:refactor": "Show what Rector would change; fails when it would change anything.",
"build": "Build the upload ZIP from the download keep-list into build/.",
"check:archive": "Check that a branch download holds only what the plugin runs."
}
}