aboutsummaryrefslogtreecommitdiffstats
path: root/composer.json
blob: 48598e0c5a4d2ce77b6b641b165e5c784fa68c54 (plain)
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
{
	"config": {
		"vendor-dir": "lib/composer",
		"optimize-autoloader": true,
		"sort-packages": true,
		"platform": {
			"php": "8.0"
		},
		"allow-plugins": {
			"bamarni/composer-bin-plugin": true
		}
	},
	"autoload": {
		"exclude-from-classmap": ["**/bamarni/composer-bin-plugin/**"],
		"files": [
			"lib/public/Log/functions.php"
		],
		"psr-4": {
			"": "lib/private/legacy",
			"OC\\": "lib/private",
			"OC\\Core\\": "core/",
			"OCP\\": "lib/public"
		}
	},
	"require": {
		"php": "^8.0",
		"ext-ctype": "*",
		"ext-curl": "*",
		"ext-dom": "*",
		"ext-fileinfo": "*",
		"ext-gd": "*",
		"ext-json": "*",
		"ext-libxml": "*",
		"ext-mbstring": "*",
		"ext-openssl": "*",
		"ext-pdo": "*",
		"ext-posix": "*",
		"ext-session": "*",
		"ext-simplexml": "*",
		"ext-xml": "*",
		"ext-xmlreader": "*",
		"ext-xmlwriter": "*",
		"ext-zip": "*",
		"ext-zlib": "*"
	},
	"require-dev": {
		"bamarni/composer-bin-plugin": "^1.4"
	},
	"scripts": {
		"post-install-cmd": [
			"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
			"composer dump-autoload --no-dev"
		],
		"post-update-cmd": [
			"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
			"composer dump-autoload --no-dev"
		],
		"cs:fix": "php-cs-fixer fix",
		"cs:check": "php-cs-fixer fix --dry-run --diff",
		"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
		"psalm": "psalm --no-cache --threads=$(nproc)",
		"psalm:ci": "psalm --no-cache --threads=1",
		"psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
		"serve": [
			"Composer\\Config::disableProcessTimeout",
			"PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
		],
		"test": "phpunit --configuration tests/phpunit-autotest.xml",
		"test:db": "@composer run test -- --group DB,SLOWDB",
		"test:files_external": "phpunit --configuration tests/phpunit-autotest-external.xml"
	},
	"extra": {
		"bamarni-bin": {
			"bin-links": true,
			"forward-command": false
		}
	}
}