composer.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-json": "*",
  27. "ext-libxml": "*",
  28. "ext-mbstring": "*",
  29. "ext-openssl": "*",
  30. "ext-pdo": "*",
  31. "ext-simplexml": "*",
  32. "ext-xmlreader": "*",
  33. "ext-zip": "*"
  34. },
  35. "require-dev": {
  36. "bamarni/composer-bin-plugin": "^1.4"
  37. },
  38. "scripts": {
  39. "post-install-cmd": [
  40. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  41. "composer dump-autoload"
  42. ],
  43. "post-update-cmd": [
  44. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  45. "composer dump-autoload"
  46. ],
  47. "cs:fix": "php-cs-fixer fix",
  48. "cs:check": "php-cs-fixer fix --dry-run --diff",
  49. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  50. "psalm": "psalm --no-cache --threads=$(nproc)",
  51. "psalm:ci": "psalm --no-cache --threads=1",
  52. "psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline"
  53. }
  54. }