composer.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. "psr-4": {
  15. "": "lib/private/legacy",
  16. "OC\\": "lib/private",
  17. "OC\\Core\\": "core/",
  18. "OCP\\": "lib/public"
  19. }
  20. },
  21. "require": {
  22. "ext-json": "*",
  23. "ext-libxml": "*",
  24. "ext-mbstring": "*",
  25. "ext-pdo": "*",
  26. "ext-simplexml": "*",
  27. "ext-xmlreader": "*",
  28. "ext-zip": "*"
  29. },
  30. "require-dev": {
  31. "bamarni/composer-bin-plugin": "^1.4"
  32. },
  33. "scripts": {
  34. "post-install-cmd": [
  35. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  36. "composer dump-autoload"
  37. ],
  38. "post-update-cmd": [
  39. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  40. "composer dump-autoload"
  41. ],
  42. "cs:fix": "php-cs-fixer fix",
  43. "cs:check": "php-cs-fixer fix --dry-run --diff",
  44. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  45. "psalm": "psalm --threads=1",
  46. "psalm:update-baseline": "psalm --threads=1 --update-baseline"
  47. }
  48. }