composer.json 2.0 KB

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