composer.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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:ocp": "psalm --no-cache --threads=$(nproc) -c psalm-ocp.xml",
  63. "psalm:security": "psalm --no-cache --threads=$(nproc) --taint-analysis --use-baseline=build/psalm-baseline-security.xml",
  64. "psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
  65. "serve": [
  66. "Composer\\Config::disableProcessTimeout",
  67. "PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
  68. ],
  69. "test": "phpunit --configuration tests/phpunit-autotest.xml",
  70. "test:db": "@composer run test -- --group DB,SLOWDB",
  71. "test:files_external": "phpunit --configuration tests/phpunit-autotest-external.xml",
  72. "rector": "rector --config=build/rector.php && composer cs:fix"
  73. },
  74. "extra": {
  75. "bamarni-bin": {
  76. "bin-links": true,
  77. "forward-command": false
  78. }
  79. }
  80. }