-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcomposer.json
61 lines (61 loc) · 2.47 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
{
"autoload": {
"psr-4": {
"OCA\\SharePoint\\": "lib/"
}
},
"config": {
"autoloader-suffix": "SharePoint",
"platform": {
"php": "8.1"
},
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"cweagans/composer-patches": true
}
},
"require": {
"vgrem/php-spo": "3.*",
"bamarni/composer-bin-plugin": "^1.8",
"cweagans/composer-patches": "^1.7"
},
"scripts": {
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
"test:unit": "phpunit -c phpunit.xml --fail-on-warning --fail-on-risky --color",
"psalm": "./vendor/bin/psalm.phar --show-info=false --no-cache",
"psalm:update-baseline": "./vendor/bin/psalm.phar --update-baseline",
"psalm:fix": "./vendor/bin/psalm.phar --no-cache --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType",
"psalm:fix:dry": "./vendor/bin/psalm.phar --no-cache --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType --dry-run",
"post-install-cmd": [
"@composer bin all install --ignore-platform-reqs # unfortunately the flag is required for 8.0",
"vendor/bin/php-scoper add-prefix --force # Scope our dependencies",
"rm -Rf lib/Vendor && mv build lib/Vendor",
"find lib/Vendor/ -maxdepth 1 -mindepth 1 -type d | cut -d '/' -f3 | xargs -I {} rm -Rf vendor/{} # Remove origins",
"@php lib-vendor-organizer.php lib/Vendor/ OCA\\\\SharePoint\\\\Vendor",
"composer dump-autoload -o"
],
"post-update-cmd": [
"@composer bin all install --ignore-platform-reqs",
"vendor/bin/php-scoper add-prefix --force # Scope our dependencies",
"rm -Rf lib/Vendor && mv build lib/Vendor",
"find lib/Vendor/ -maxdepth 1 -mindepth 1 -type d | cut -d '/' -f3 | xargs -I {} rm -Rf vendor/{} # Remove origins",
"@php lib-vendor-organizer.php lib/Vendor/ OCA\\\\SharePoint\\\\Vendor",
"composer dump-autoload -o"
]
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"nextcloud/coding-standard": "^1.3",
"psalm/phar": "^5.26",
"nextcloud/ocp": "dev-master"
},
"extra": {
"patches": {
"vgrem/php-spo": {
"PHP 8.4 compatibility": "https://patch-diff.githubusercontent.com/raw/vgrem/phpSPO/pull/352.patch"
}
}
}
}