composer.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "config": {
  3. "vendor-dir": "lib/composer",
  4. "optimize-autoloader": true,
  5. "sort-packages": true,
  6. "platform": {
  7. "php": "8.1"
  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.1",
  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. "rector": "rector --config=build/rector.php && composer cs:fix"
  72. },
  73. "extra": {
  74. "bamarni-bin": {
  75. "bin-links": true,
  76. "forward-command": false
  77. }
  78. }
  79. }