You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.6 KiB

  1. {
  2. "config": {
  3. "vendor-dir": "lib/composer",
  4. "optimize-autoloader": true,
  5. "sort-packages": true,
  6. "platform": {
  7. "php": "8.2"
  8. },
  9. "allow-plugins": {
  10. "bamarni/composer-bin-plugin": true
  11. }
  12. },
  13. "autoload": {
  14. "exclude-from-classmap": [
  15. "**/bamarni/composer-bin-plugin/**"
  16. ],
  17. "files": [
  18. "lib/public/Log/functions.php"
  19. ],
  20. "psr-4": {
  21. "": "lib/private/legacy",
  22. "OC\\": "lib/private",
  23. "OC\\Core\\": "core/",
  24. "OCP\\": "lib/public",
  25. "NCU\\": "lib/unstable"
  26. }
  27. },
  28. "require": {
  29. "php": "^8.2",
  30. "ext-apcu": "*",
  31. "ext-ctype": "*",
  32. "ext-curl": "*",
  33. "ext-dom": "*",
  34. "ext-fileinfo": "*",
  35. "ext-gd": "*",
  36. "ext-json": "*",
  37. "ext-libxml": "*",
  38. "ext-mbstring": "*",
  39. "ext-openssl": "*",
  40. "ext-pdo": "*",
  41. "ext-posix": "*",
  42. "ext-session": "*",
  43. "ext-simplexml": "*",
  44. "ext-xml": "*",
  45. "ext-xmlreader": "*",
  46. "ext-xmlwriter": "*",
  47. "ext-zip": "*",
  48. "ext-zlib": "*"
  49. },
  50. "require-dev": {
  51. "bamarni/composer-bin-plugin": "^1.4"
  52. },
  53. "scripts": {
  54. "post-install-cmd": [
  55. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  56. "composer dump-autoload --no-dev"
  57. ],
  58. "post-update-cmd": [
  59. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  60. "composer dump-autoload --no-dev"
  61. ],
  62. "cs:fix": "php-cs-fixer fix",
  63. "cs:check": "php-cs-fixer fix --dry-run --diff",
  64. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  65. "psalm": "psalm --no-cache --threads=$(nproc)",
  66. "psalm:ocp": "psalm --no-cache --threads=$(nproc) -c psalm-ocp.xml",
  67. "psalm:ncu": "psalm --no-cache --threads=$(nproc) -c psalm-ncu.xml",
  68. "psalm:security": "psalm --no-cache --threads=$(nproc) --taint-analysis --use-baseline=build/psalm-baseline-security.xml",
  69. "psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
  70. "serve": [
  71. "Composer\\Config::disableProcessTimeout",
  72. "PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
  73. ],
  74. "test": "phpunit --fail-on-warning --fail-on-risky --display-warnings --display-deprecations --display-phpunit-deprecations --colors=always --configuration tests/phpunit-autotest.xml",
  75. "test:db": "@composer run test -- --group DB,SLOWDB",
  76. "test:files_external": "phpunit --fail-on-warning --fail-on-risky --display-warnings --display-deprecations --display-phpunit-deprecations --colors=always --configuration tests/phpunit-autotest-external.xml",
  77. "rector": "rector --config=build/rector.php && composer cs:fix",
  78. "openapi": "./build/openapi-checker.sh"
  79. },
  80. "extra": {
  81. "bamarni-bin": {
  82. "bin-links": true,
  83. "forward-command": false
  84. }
  85. }
  86. }