composer.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "config": {
  3. "vendor-dir": "lib/composer",
  4. "optimize-autoloader": true,
  5. "sort-packages": true,
  6. "platform": {
  7. "php": "7.4"
  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. "ext-json": "*",
  26. "ext-libxml": "*",
  27. "ext-mbstring": "*",
  28. "ext-pdo": "*",
  29. "ext-simplexml": "*",
  30. "ext-xmlreader": "*",
  31. "ext-zip": "*"
  32. },
  33. "require-dev": {
  34. "bamarni/composer-bin-plugin": "^1.4"
  35. },
  36. "scripts": {
  37. "post-install-cmd": [
  38. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  39. "composer dump-autoload"
  40. ],
  41. "post-update-cmd": [
  42. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  43. "composer dump-autoload"
  44. ],
  45. "cs:fix": "php-cs-fixer fix",
  46. "cs:check": "php-cs-fixer fix --dry-run --diff",
  47. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  48. "psalm": "psalm --threads=1",
  49. "psalm:update-baseline": "psalm --threads=1 --update-baseline"
  50. }
  51. }