wiki-grav/plugins/devtools/components/plugin/flex/composer.json.twig
2023-06-15 20:26:02 +02:00

26 lines
720 B
Twig

{% set githubid = component.author.githubid ?: component.author.name|hyphenize -%}
{
"name": "{{ githubid|lower }}/{{ component.name|hyphenize }}",
"type": "grav-plugin",
"description": "{{ component.description }}",
"keywords": ["plugin"],
"homepage": "https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize }}",
"license": "MIT",
"authors": [
{
"name": "{{ component.author.name }}",
"email": "{{ component.author.email }}",
"role": "Developer"
}
],
"require": {
"php": ">=7.1.3"
},
"autoload": {
"psr-4": {
"Grav\\Plugin\\{{ component.name|camelize }}\\": "classes/"
},
"classmap": ["{{ component.name|hyphenize }}.php"]
}
}