You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
3.9 KiB

3 years ago
  1. {
  2. "name": "ramsey/collection",
  3. "type": "library",
  4. "description": "A PHP 7.2+ library for representing and manipulating collections.",
  5. "keywords": [
  6. "array",
  7. "collection",
  8. "hash",
  9. "map",
  10. "queue",
  11. "set"
  12. ],
  13. "license": "MIT",
  14. "authors": [
  15. {
  16. "name": "Ben Ramsey",
  17. "email": "ben@benramsey.com",
  18. "homepage": "https://benramsey.com"
  19. }
  20. ],
  21. "require": {
  22. "php": "^7.2 || ^8"
  23. },
  24. "require-dev": {
  25. "captainhook/captainhook": "^5.3",
  26. "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
  27. "ergebnis/composer-normalize": "^2.6",
  28. "fakerphp/faker": "^1.5",
  29. "hamcrest/hamcrest-php": "^2",
  30. "jangregor/phpstan-prophecy": "^0.8",
  31. "mockery/mockery": "^1.3",
  32. "phpstan/extension-installer": "^1",
  33. "phpstan/phpstan": "^0.12.32",
  34. "phpstan/phpstan-mockery": "^0.12.5",
  35. "phpstan/phpstan-phpunit": "^0.12.11",
  36. "phpunit/phpunit": "^8.5 || ^9",
  37. "psy/psysh": "^0.10.4",
  38. "slevomat/coding-standard": "^6.3",
  39. "squizlabs/php_codesniffer": "^3.5",
  40. "vimeo/psalm": "^4.4"
  41. },
  42. "config": {
  43. "sort-packages": true
  44. },
  45. "autoload": {
  46. "psr-4": {
  47. "Ramsey\\Collection\\": "src/"
  48. }
  49. },
  50. "autoload-dev": {
  51. "psr-4": {
  52. "Ramsey\\Console\\": "resources/console/",
  53. "Ramsey\\Collection\\Test\\": "tests/"
  54. },
  55. "files": [
  56. "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
  57. ]
  58. },
  59. "scripts": {
  60. "post-autoload-dump": "captainhook install --ansi -f -s",
  61. "br:analyze": [
  62. "@br:analyze:phpstan",
  63. "@br:analyze:psalm"
  64. ],
  65. "br:analyze:phpstan": "phpstan --memory-limit=1G analyse",
  66. "br:analyze:psalm": "psalm --diff --config=psalm.xml",
  67. "br:build:clean": "git clean -fX build/.",
  68. "br:build:clear-cache": "git clean -fX build/cache/.",
  69. "br:lint": "phpcs --cache=build/cache/phpcs.cache",
  70. "br:lint:fix": "./bin/lint-fix.sh",
  71. "br:repl": [
  72. "echo ; echo 'Type ./bin/repl to start the REPL.'"
  73. ],
  74. "br:test": "phpunit",
  75. "br:test:all": [
  76. "@br:lint",
  77. "@br:analyze",
  78. "@br:test"
  79. ],
  80. "br:test:coverage:ci": "phpunit --coverage-clover build/logs/clover.xml",
  81. "br:test:coverage:html": "phpunit --coverage-html build/coverage",
  82. "pre-commit": [
  83. "@br:lint:fix",
  84. "@br:lint",
  85. "@br:analyze"
  86. ],
  87. "test": "@br:test:all"
  88. },
  89. "scripts-descriptions": {
  90. "br:analyze": "Performs static analysis on the code base.",
  91. "br:analyze:phpstan": "Runs the PHPStan static analyzer.",
  92. "br:analyze:psalm": "Runs the Psalm static analyzer.",
  93. "br:build:clean": "Removes everything not under version control from the build directory.",
  94. "br:build:clear-cache": "Removes everything not under version control from build/cache/.",
  95. "br:lint": "Checks all source code for coding standards issues.",
  96. "br:lint:fix": "Checks source code for coding standards issues and fixes them, if possible.",
  97. "br:repl": "Note: Use ./bin/repl to run the REPL.",
  98. "br:test": "Runs the full unit test suite.",
  99. "br:test:all": "Runs linting, static analysis, and unit tests.",
  100. "br:test:coverage:ci": "Runs the unit test suite and generates a Clover coverage report.",
  101. "br:test:coverage:html": "Runs the unit tests suite and generates an HTML coverage report.",
  102. "pre-commit": "These commands are run as part of a Git pre-commit hook installed using captainhook/captainhook. Each command should be prepared to accept a list of space-separated staged files.",
  103. "test": "Shortcut to run the full test suite."
  104. }
  105. }