composer.json.twig 784 B

123456789101112131415161718192021222324252627282930
  1. {% set githubid = component.author.githubid ?: component.author.name|hyphenize -%}
  2. {
  3. "name": "{{ githubid|lower }}/{{ component.name|hyphenize }}",
  4. "type": "grav-plugin",
  5. "description": "{{ component.description }}",
  6. "keywords": ["plugin"],
  7. "homepage": "https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize }}",
  8. "license": "MIT",
  9. "authors": [
  10. {
  11. "name": "{{ component.author.name }}",
  12. "email": "{{ component.author.email }}",
  13. "role": "Developer"
  14. }
  15. ],
  16. "require": {
  17. "php": ">=7.1.3"
  18. },
  19. "autoload": {
  20. "psr-4": {
  21. "Grav\\Plugin\\{{ component.name|camelize }}\\": "classes/"
  22. },
  23. "classmap": ["{{ component.name|hyphenize }}.php"]
  24. },
  25. "config": {
  26. "platform": {
  27. "php": "7.1.3"
  28. }
  29. }
  30. }