-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
91 lines (91 loc) · 2.85 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
84
85
86
87
88
89
90
91
{
"name": "mralaminahamed/freemius-stubs",
"description": "Freemius WordPress SDK function and class declaration stubs for static analysis.",
"type": "library",
"keywords": [
"freemius",
"wordpress",
"static analysis",
"phpstan",
"stubs",
"wordpress-sdk"
],
"homepage": "https://github.com/mralaminahamed/phpstan-freemius-stubs",
"license": "MIT",
"authors": [
{
"name": "Mr Alamin Ahamed",
"homepage": "https://github.com/mralaminahamed"
}
],
"require": {
"php": ">=7.4",
"php-stubs/wordpress-stubs": "^5.3 || ^6.0"
},
"require-dev": {
"php-stubs/generator": "^0.8.0",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"squizlabs/php_codesniffer": "^3.7"
},
"suggest": {
"szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload-dev": {
"psr-4": {
"FreemiusStubs\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"php-stubs/generator": true
},
"sort-packages": true,
"optimize-autoloader": true,
"preferred-install": "dist",
"platform": {
"php": "7.4.0"
}
},
"scripts": {
"post-install-cmd": [
"@composer --working-dir=source/ update --no-interaction"
],
"post-update-cmd": [
"@composer --working-dir=source/ update --no-interaction"
],
"analyze": "phpstan analyze",
"check": [
"@cs",
"@test",
"@analyze"
],
"cleanup": [
"git clean -xdf --exclude='.idea' --exclude='.vscode'",
"git status --short --ignored | sed -n -e 's#^!! ##p' | xargs -r rm -vrf"
],
"cs": "phpcs",
"cs-fix": "phpcbf",
"generate": "bash bin/generate.sh",
"release": "bash bin/release.sh",
"test": "phpunit",
"test-coverage": "phpunit --coverage-html coverage"
},
"scripts-descriptions": {
"analyze": "Run static analysis using PHPStan",
"check": "Run all checks (coding standards, tests, and static analysis)",
"cleanup": "Remove all ignored and generated files",
"cs": "Check coding standards",
"cs-fix": "Fix coding standards automatically",
"generate": "Generate Freemius stubs",
"release": "Generate and release new version of stubs",
"test": "Run unit tests",
"test-coverage": "Run unit tests with code coverage report"
},
"support": {
"issues": "https://github.com/mralaminahamed/phpstan-freemius-stubs/issues",
"source": "https://github.com/mralaminahamed/phpstan-freemius-stubs"
}
}