forked from phpbb-extensions/phpbb-ext-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomposer.json.twig
More file actions
36 lines (36 loc) · 1.21 KB
/
composer.json.twig
File metadata and controls
36 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% apply skeleton_decode %}
{
"name": "{{ EXTENSION.vendor_name }}/{{ EXTENSION.extension_name }}",
"type": "phpbb-extension",
"description": "{{ EXTENSION.extension_description }}",
"homepage": "{{ EXTENSION.extension_homepage }}",
"version": "{{ EXTENSION.extension_version }}",
"time": "{{ EXTENSION.extension_time }}",
"license": "GPL-2.0-only",
"authors": [
{% for AUTHOR in AUTHORS %}
{
"name": "{{ AUTHOR.author_name }}",
"email": "{{ AUTHOR.author_email }}",
"homepage": "{{ AUTHOR.author_homepage }}",
"role": "{{ AUTHOR.author_role }}"
}{{ not loop.last ? ',' }}
{% endfor %}
],
"require": {
"php": "{{ REQUIREMENTS.php_version }}",
"composer/installers": "^1.0{% if skeleton_version_compare(REQUIREMENTS.phpbb_version_max, "4.0.0", ">") %} || ^2.0{% endif %}"
},
{% if COMPONENT.build %}
"require-dev": {
"phing/phing": "~2.4"
},
{% endif %}
"extra": {
"display-name": "{{ EXTENSION.extension_display_name }}",
"soft-require": {
"phpbb/phpbb": "{{ REQUIREMENTS.phpbb_version_min }},{{ REQUIREMENTS.phpbb_version_max }}"
}
}
}
{% endapply %}