composer.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "config" : {
  3. "vendor-dir": "lib/composer",
  4. "optimize-autoloader": true,
  5. "sort-packages": true,
  6. "platform": {
  7. "php": "7.3"
  8. },
  9. "allow-plugins": {
  10. "bamarni/composer-bin-plugin": true,
  11. "composer/package-versions-deprecated": true
  12. }
  13. },
  14. "autoload" : {
  15. "psr-4": {
  16. "": "lib/private/legacy",
  17. "OC\\": "lib/private",
  18. "OC\\Core\\": "core/",
  19. "OCP\\": "lib/public"
  20. }
  21. },
  22. "require": {
  23. "ext-json": "*",
  24. "ext-libxml": "*",
  25. "ext-mbstring": "*",
  26. "ext-pdo": "*",
  27. "ext-simplexml": "*",
  28. "ext-xmlreader": "*",
  29. "ext-zip": "*"
  30. },
  31. "require-dev": {
  32. "bamarni/composer-bin-plugin": "^1.4"
  33. },
  34. "scripts": {
  35. "post-install-cmd": [
  36. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  37. "composer dump-autoload"
  38. ],
  39. "post-update-cmd": [
  40. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  41. "composer dump-autoload"
  42. ],
  43. "cs:fix": "php-cs-fixer fix",
  44. "cs:check": "php-cs-fixer fix --dry-run --diff",
  45. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  46. "psalm": "psalm --threads=1",
  47. "psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=build/psalm-baseline.xml"
  48. }
  49. }