1
0

composer.json 2.3 KB

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