forked from fisharebest/webtrees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
190 lines (190 loc) · 7.91 KB
/
composer.json
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"name": "fisharebest/webtrees",
"description": "webtrees online genealogy",
"keywords": [
"webtrees",
"genealogy"
],
"license": "GPL-3.0-or-later",
"autoload": {
"psr-4": {
"Fisharebest\\Webtrees\\": "app/"
},
"files": [
"app/Helpers/functions.php"
]
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php",
"tests/MockGlobalFunctions.php"
]
},
"config": {
"platform": {
"php": "7.4"
},
"sort-packages": true,
"process-timeout": 3600
},
"require": {
"php": "7.4 - 8.1",
"ext-ctype": "*",
"ext-curl": "*",
"ext-exif": "*",
"ext-fileinfo": "*",
"ext-gd": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-pcre": "*",
"ext-pdo": "*",
"ext-session": "*",
"ext-simplexml": "*",
"ext-xml": "*",
"aura/router": "3.2.0",
"doctrine/dbal": "3.3.6",
"ezyang/htmlpurifier": "4.14.0",
"fig/http-message-util": "1.1.5",
"fisharebest/algorithm": "1.6.0",
"fisharebest/ext-calendar": "2.5.0",
"fisharebest/flysystem-chroot-adapter": "2.0.0",
"fisharebest/localization": "1.15.1",
"guzzlehttp/guzzle": "7.4.3",
"illuminate/container": "8.83.14",
"illuminate/database": "8.83.14",
"illuminate/support": "8.83.14",
"intervention/image": "2.7.2",
"io-developer/php-whois": "4.1.6",
"league/commonmark": "2.3.1",
"league/flysystem": "2.4.5",
"league/flysystem-ziparchive": "2.3.1",
"middlewares/client-ip": "2.0.1",
"mlocati/ip-lib": "1.18.0",
"nesbot/carbon": "2.58.0",
"nyholm/psr7": "1.5.0",
"nyholm/psr7-server": "1.0.2",
"oscarotero/middleland": "1.0.1",
"psr/cache": "1.0.1",
"psr/http-message": "1.0.1",
"psr/http-server-handler": "1.0.1",
"psr/http-server-middleware": "1.0.1",
"ramsey/uuid": "4.2.3",
"sabre/vobject": "4.4.1",
"symfony/cache": "5.4.8",
"symfony/expression-language": "5.4.8",
"symfony/mailer": "5.4.8",
"symfony/polyfill-mbstring": "1.25.0",
"symfony/polyfill-php80": "1.25.0",
"tecnickcom/tcpdf": "6.4.4"
},
"require-dev": {
"ext-dom": "*",
"ext-libxml": "*",
"ext-pdo_sqlite": "*",
"ext-sqlite3": "*",
"composer/composer": "2.3.5",
"league/flysystem-memory": "2.0.6",
"php-coveralls/php-coveralls": "2.5.2",
"phpunit/phpunit": "9.5.20"
},
"suggest": {
"ext-imagick": "Required to generate thumbnail images",
"ext-pdo_mysql": "Required to use MySQL for database storage",
"ext-pdo_sqlite": "Required to use SQLite for database storage",
"ext-pdo_pgsql": "Required to use PostgreSQL for database storage",
"ext-pdo_sqlsvr": "Required to use SQL Server for database storage",
"ext-zip": "Required to compress downloads and use the upgrade wizard",
"ext-zlib": "Required to compress HTTP responses"
},
"scripts": {
"webtrees:build": [
"rm -Rf webtrees/",
"git archive --prefix=webtrees/ HEAD --format=tar | tar -x",
"@composer install --no-dev --quiet",
"cp -r vendor/ webtrees/vendor/",
"@composer webtrees:lang",
"for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done",
"zip --quiet --recurse-paths --move -9 webtrees-`git describe`.zip webtrees"
],
"webtrees:pre-commit-hook": [
"@composer webtrees:phpcs",
"@composer webtrees:phpstan",
"@composer webtrees:test"
],
"webtrees:check": [
"### PHP-CODE-SNIFFER",
"@composer webtrees:phpcs",
"### PHPSTAN",
"@composer webtrees:phpstan",
"### PSALM",
"@composer webtrees:psalm"
],
"webtrees:phpcs": [
"@composer global require squizlabs/php_codesniffer=* --quiet",
"~/.composer/vendor/bin/phpcs --standard=PSR12 --colors --extensions=php --exclude=Generic.Files.LineLength index.php app tests",
"~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css"
],
"webtrees:phpstan": [
"@composer global require --quiet phpstan/phpstan=*",
"@composer global require --quiet phpstan/extension-installer=*",
"@composer global require --quiet phpstan/phpstan-deprecation-rules=*",
"@composer global require --quiet phpstan/phpstan-strict-rules=*",
"@composer global require --quiet phpstan/phpstan-phpunit=*",
"@composer install --quiet",
"~/.composer/vendor/bin/phpstan analyze --memory-limit=-1 --level=max index.php app",
"@composer install --no-dev --quiet"
],
"webtrees:phpstan-baseline": [
"@composer global require --quiet phpstan/phpstan=*",
"@composer global require --quiet phpstan/extension-installer=*",
"@composer global require --quiet phpstan/phpstan-deprecation-rules=*",
"@composer global require --quiet phpstan/phpstan-strict-rules=*",
"@composer global require --quiet phpstan/phpstan-phpunit=*",
"@composer install --quiet",
"~/.composer/vendor/bin/phpstan analyze --level=max --generate-baseline=phpstan-baseline.neon index.php app",
"@composer install --no-dev --quiet"
],
"webtrees:psalm": [
"@composer global require --quiet vimeo/psalm",
"@composer install --quiet",
"~/.composer/vendor/bin/psalm --threads=8 --php-version=8.1",
"@composer install --no-dev --quiet"
],
"webtrees:test": [
"@composer install --quiet",
"@php vendor/bin/phpunit",
"@composer install --no-dev --quiet"
],
"webtrees:coverage": [
"@composer install --dev --quiet",
"vendor/bin/phpunit --coverage-html=tests/coverage",
"@composer install --no-dev --quiet"
],
"webtrees:lang": [
"Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles"
],
"webtrees:missing-tests": [
"Fisharebest\\Webtrees\\Console\\ComposerScripts::missingTests"
],
"webtrees:po": [
"sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml",
"git grep -I --name-only --fixed-strings -e I18N:: -- '*.php' '*.phtml' '*.xml' | xargs xgettext --package-name=webtrees --package-version=1.0 [email protected] --output=resources/lang/webtrees.pot --no-wrap --language=PHP --add-comments=I18N --from-code=utf-8 --keyword --keyword=translate:1 --keyword=translateContext:1c,2 --keyword=plural:1,2",
"find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;",
"find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;"
],
"webtrees:png": [
"find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;",
"find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;",
"find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;"
]
},
"scripts-descriptions": {
"webtrees:build": "Create a distribution file (webtrees.zip)",
"webtrees:check": "Run various static analysis tools",
"webtrees:coverage": "Generate test coverage report",
"webtrees:lang": "Compile the language files (messages.php)",
"webtrees:po": "Update the language (webtrees.pot, *.po)"
}
}