1
0

composer.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "config": {
  3. "vendor-dir": "lib/composer",
  4. "optimize-autoloader": true,
  5. "sort-packages": true,
  6. "platform": {
  7. "php": "8.0"
  8. },
  9. "allow-plugins": {
  10. "bamarni/composer-bin-plugin": true
  11. }
  12. },
  13. "autoload": {
  14. "files": [
  15. "lib/public/Log/functions.php"
  16. ],
  17. "psr-4": {
  18. "": "lib/private/legacy",
  19. "OC\\": "lib/private",
  20. "OC\\Core\\": "core/",
  21. "OCP\\": "lib/public"
  22. }
  23. },
  24. "require": {
  25. "php": "^8.0",
  26. "ext-ctype": "*",
  27. "ext-curl": "*",
  28. "ext-dom": "*",
  29. "ext-fileinfo": "*",
  30. "ext-gd": "*",
  31. "ext-json": "*",
  32. "ext-libxml": "*",
  33. "ext-mbstring": "*",
  34. "ext-openssl": "*",
  35. "ext-pdo": "*",
  36. "ext-posix": "*",
  37. "ext-session": "*",
  38. "ext-simplexml": "*",
  39. "ext-xml": "*",
  40. "ext-xmlreader": "*",
  41. "ext-xmlwriter": "*",
  42. "ext-zip": "*",
  43. "ext-zlib": "*"
  44. },
  45. "require-dev": {
  46. "bamarni/composer-bin-plugin": "^1.4"
  47. },
  48. "scripts": {
  49. "post-install-cmd": [
  50. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  51. "composer dump-autoload"
  52. ],
  53. "post-update-cmd": [
  54. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  55. "composer dump-autoload"
  56. ],
  57. "cs:fix": "php-cs-fixer fix",
  58. "cs:check": "php-cs-fixer fix --dry-run --diff",
  59. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  60. "psalm": "psalm --no-cache --threads=$(nproc)",
  61. "psalm:ci": "psalm --no-cache --threads=1",
  62. "psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
  63. "serve": [
  64. "Composer\\Config::disableProcessTimeout",
  65. "PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
  66. ],
  67. "test": "phpunit --configuration tests/phpunit-autotest.xml",
  68. "test:db": "@composer run test -- --group DB,SLOWDB",
  69. "test:files_external": "phpunit --configuration tests/phpunit-autotest-external.xml"
  70. }
  71. }