1
0

composer.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. "NCU\\": "lib/unstable"
  24. }
  25. },
  26. "require": {
  27. "php": "^8.1",
  28. "ext-ctype": "*",
  29. "ext-curl": "*",
  30. "ext-dom": "*",
  31. "ext-fileinfo": "*",
  32. "ext-gd": "*",
  33. "ext-json": "*",
  34. "ext-libxml": "*",
  35. "ext-mbstring": "*",
  36. "ext-openssl": "*",
  37. "ext-pdo": "*",
  38. "ext-posix": "*",
  39. "ext-session": "*",
  40. "ext-simplexml": "*",
  41. "ext-xml": "*",
  42. "ext-xmlreader": "*",
  43. "ext-xmlwriter": "*",
  44. "ext-zip": "*",
  45. "ext-zlib": "*"
  46. },
  47. "require-dev": {
  48. "bamarni/composer-bin-plugin": "^1.4"
  49. },
  50. "scripts": {
  51. "post-install-cmd": [
  52. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  53. "composer dump-autoload --no-dev"
  54. ],
  55. "post-update-cmd": [
  56. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  57. "composer dump-autoload --no-dev"
  58. ],
  59. "cs:fix": "php-cs-fixer fix",
  60. "cs:check": "php-cs-fixer fix --dry-run --diff",
  61. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  62. "psalm": "psalm --no-cache --threads=$(nproc)",
  63. "psalm:ocp": "psalm --no-cache --threads=$(nproc) -c psalm-ocp.xml",
  64. "psalm:security": "psalm --no-cache --threads=$(nproc) --taint-analysis --use-baseline=build/psalm-baseline-security.xml",
  65. "psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
  66. "serve": [
  67. "Composer\\Config::disableProcessTimeout",
  68. "PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
  69. ],
  70. "test": "phpunit --configuration tests/phpunit-autotest.xml",
  71. "test:db": "@composer run test -- --group DB,SLOWDB",
  72. "test:files_external": "phpunit --configuration tests/phpunit-autotest-external.xml",
  73. "rector": "rector --config=build/rector.php && composer cs:fix"
  74. },
  75. "extra": {
  76. "bamarni-bin": {
  77. "bin-links": true,
  78. "forward-command": false
  79. }
  80. }
  81. }