Skip to content

Commit f3681b2

Browse files
committed
chore: add vendor-bin
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 2cd7c78 commit f3681b2

22 files changed

+5535
-2087
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
/vendor-bin/**/composer.lock binary

.github/dependabot.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,53 @@
22
# SPDX-License-Identifier: AGPL-3.0-only
33
version: 2
44
updates:
5+
6+
# Composer
57
- package-ecosystem: composer
68
directory: "/"
9+
commit-message:
10+
prefix: "build"
11+
include: "scope"
12+
versioning-strategy: "increase"
713
schedule:
814
interval: weekly
915
day: saturday
1016
time: "03:00"
1117
timezone: Europe/Paris
12-
open-pull-requests-limit: 10
1318
labels:
1419
- 3. to review
1520
- dependencies
21+
22+
# Composer (tooling)
23+
- package-ecosystem: composer
24+
directories:
25+
- "/vendor-bin/cs-fixer"
26+
- "/vendor-bin/phpunit"
27+
- "/vendor-bin/psalm"
1628
commit-message:
17-
prefix: chore
18-
include: scope
29+
prefix: "ci"
30+
include: "scope"
31+
versioning-strategy: "increase"
32+
schedule:
33+
interval: weekly
34+
day: saturday
35+
time: "03:15"
36+
timezone: Europe/Berlin
37+
labels:
38+
- 3. to review
39+
- dependencies
40+
41+
# GitHub Actions
42+
- package-ecosystem: "github-actions"
43+
directory: ".github/workflows"
44+
commit-message:
45+
prefix: "ci"
46+
include: "scope"
47+
schedule:
48+
interval: weekly
49+
day: saturday
50+
time: "03:30"
51+
timezone: Europe/Berlin
52+
labels:
53+
- 3. to review
54+
- dependencies

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/.php_cs.cache
55
/tests/.phpunit.result.cache
66
/vendor
7+
/vendor-bin/**/vendor/

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
66
* SPDX-License-Identifier: AGPL-3.0-only
77
*/
8-
require_once './vendor/autoload.php';
8+
require_once './vendor-bin/cs-fixer/vendor/autoload.php';
99

1010
use Nextcloud\CodingStandard\Config;
1111

composer.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
{
22
"require-dev": {
3-
"nextcloud/coding-standard": "^v1.1.1",
4-
"psalm/phar": "^5.15.0",
5-
"bantu/ini-get-wrapper": "v1.0.1",
6-
"phpunit/phpunit": "^9.5",
3+
"bamarni/composer-bin-plugin": "^1.8",
4+
"bantu/ini-get-wrapper": "1.0.1",
75
"nextcloud/ocp": "dev-master"
86
},
9-
"scripts": {
10-
"cs:check": "php-cs-fixer fix --dry-run --diff",
11-
"cs:fix": "php-cs-fixer fix",
12-
"psalm": "psalm.phar --threads=1",
13-
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
14-
"psalm:clear": "psalm.phar --clear-cache && psalm --clear-global-cache",
15-
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
16-
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
17-
"test:unit": "phpunit -c tests/phpunit.xml --fail-on-warning"
18-
},
197
"config": {
208
"allow-plugins": {
9+
"bamarni/composer-bin-plugin": true,
2110
"composer/package-versions-deprecated": true
2211
},
2312
"platform": {
2413
"php": "8.1"
14+
},
15+
"sort-packages": true
16+
},
17+
"extra": {
18+
"bamarni-bin": {
19+
"bin-links": false,
20+
"forward-command": true,
21+
"target-directory": "vendor-bin"
2522
}
23+
},
24+
"scripts": {
25+
"cs:check": "vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff",
26+
"cs:fix": "vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix",
27+
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
28+
"psalm": "vendor-bin/psalm/vendor/bin/psalm --threads=1",
29+
"psalm:clear": "vendor-bin/psalm/vendor/bin/psalm --clear-cache && vendor-bin/psalm/vendor/bin/psalm --clear-cache --clear-global-cache",
30+
"psalm:update-baseline": "vendor-bin/psalm/vendor/bin/psalm --update-baseline --set-baseline=tests/psalm-baseline.xml",
31+
"test:unit": "vendor-bin/phpunit/vendor/bin/phpunit -c tests/phpunit.xml --fail-on-warning"
2632
}
2733
}

0 commit comments

Comments
 (0)