mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
When is eexcuting a composer command as root, by this new way don't will change the file owner because will preserve the owner of original file. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
73 lines
2.4 KiB
JSON
73 lines
2.4 KiB
JSON
{
|
|
"require": {
|
|
"bamarni/composer-bin-plugin": "^1.8",
|
|
"endroid/qr-code": "^5.0",
|
|
"jsignpdf/jsignpdf-php": "^1.2",
|
|
"libresign/whatosami": "^0.0.2",
|
|
"mikehaertl/php-pdftk": "^0.14.0",
|
|
"mpdf/mpdf": "^8.2",
|
|
"pagerfanta/pagerfanta": "^4.5",
|
|
"phpseclib/phpseclib": "^3.0",
|
|
"smalot/pdfparser": "^2.4",
|
|
"twig/twig": "^3.20",
|
|
"wobeto/email-blur": "^1.0"
|
|
},
|
|
"require-dev": {
|
|
"nextcloud/ocp": "dev-master",
|
|
"roave/security-advisories": "dev-latest"
|
|
},
|
|
"config": {
|
|
"autoloader-suffix": "Libresign",
|
|
"optimize-autoloader": true,
|
|
"classmap-authoritative": true,
|
|
"sort-packages": true,
|
|
"allow-plugins": {
|
|
"bamarni/composer-bin-plugin": true
|
|
},
|
|
"platform": {
|
|
"php": "8.1"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"bin": "echo 'bin not installed'",
|
|
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l",
|
|
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
|
"cs:fix": "php-cs-fixer fix",
|
|
"openapi": "generate-spec --verbose && (npm run typescript:generate || echo 'Please manually regenerate the typescript OpenAPI models')",
|
|
"psalm": "psalm --no-cache --threads=$(nproc)",
|
|
"psalm:update-baseline": "psalm --threads=$(nproc) --update-baseline --set-baseline=tests/psalm-baseline.xml",
|
|
"pre-autoload-dump": [
|
|
"mkdir -p lib/Vendor"
|
|
],
|
|
"post-install-cmd": [
|
|
"@composer bin all install --ansi",
|
|
"php -d error_reporting=E_ALL\\&~E_DEPRECATED\\&~E_USER_DEPRECATED vendor-bin/php-scoper/vendor/humbug/php-scoper/bin/php-scoper add-prefix --force && cp l10n/.gitkeep lib/Vendor/.gitkeep",
|
|
"composer dump-autoload -o"
|
|
],
|
|
"post-update-cmd": [
|
|
"php -d error_reporting=E_ALL\\&~E_DEPRECATED\\&~E_USER_DEPRECATED vendor-bin/php-scoper/vendor/humbug/php-scoper/bin/php-scoper add-prefix --force && cp l10n/.gitkeep lib/Vendor/.gitkeep",
|
|
"composer dump-autoload"
|
|
],
|
|
"test:unit": "vendor/bin/phpunit -c tests/php/phpunit.xml --no-coverage --colors=always --fail-on-warning --fail-on-risky --display-deprecations --display-phpunit-deprecations",
|
|
"test:coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit -c tests/php/phpunit.xml"
|
|
},
|
|
"extra": {
|
|
"bamarni-bin": {
|
|
"bin-links": true,
|
|
"forward-command": true
|
|
}
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"OCA\\Libresign\\": "lib/"
|
|
},
|
|
"classmap": [
|
|
"lib/Vendor/"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"OCP\\": "vendor/nextcloud/ocp/OCP"
|
|
}
|
|
}
|
|
}
|