/
composer.json
191 lines (191 loc) · 7.73 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
191
{
"name" : "sjorek/unicode-normalization",
"description" : "An enhanced facade to existing unicode-normalization implementations.",
"homepage" : "https://sjorek.github.io/unicode-normalization/",
"license" : "BSD-3-Clause",
"authors": [
{
"name": "Stephan Jorek",
"email": "stephan.jorek@gmail.com"
}
],
"type" : "library",
"keywords" : [
"stream",
"stream-filter",
"unicode",
"normalization",
"utf8",
"nfc",
"nfd",
"nfkc",
"nfkd"
],
"autoload" : {
"psr-4" : {
"Sjorek\\UnicodeNormalization\\" : "src/UnicodeNormalization"
},
"files": [
"src/bootstrap.php"
]
},
"autoload-dev" : {
"psr-4" : {
"Sjorek\\UnicodeNormalization\\Tests\\" : "tests/UnicodeNormalization/Tests"
},
"files": [
"tests/bootstrap.php"
]
},
"require" : {
"php": "^7.0",
"symfony/filesystem": "^3.4 || ^4.0"
},
"require-dev" : {
"ext-iconv": "*",
"ext-intl": "*",
"ext-mbstring": "*",
"ext-zlib": "*",
"friendsofphp/php-cs-fixer": "^2.7",
"mikey179/vfsStream": "^1.6",
"phpunit/phpunit": "^6.5",
"sensiolabs/security-checker": "^4.1"
},
"replace" : {
"sjorek/unicode-normalization-stream-filter" : "*"
},
"repositories": [
{
"type" : "path",
"url" : "tests/UnicodeNormalization/Tests/Fixtures/Packages/*Runtime"
}
],
"suggest" : {
"ext-iconv" : "Eventually enables a special unicode-normalization mode for HFS+ filesystems (NFD_MAC), if the 'iconv' extension supports the 'utf-8-mac' charset.",
"ext-intl" : "For best performance, but please consider 'sjorek/unicode-normalization-native-implementation' package instead.",
"ext-mbstring" : "For best performance, but please consider 'sjorek/unicode-normalization-native-implementation' package instead.",
"symfony/polyfill-intl-normalizer": "For compatibility, if the php extension 'intl' is not available and the 'patchwork/utf8' package is not suiteable.",
"symfony/polyfill-mbstring": "For compatibility, if the php extension 'intl' is not available and the 'patchwork/utf8' package is not suiteable.",
"patchwork/utf8": "For compatibility, if one of the above php extensions 'mbstring' or 'intl' is not available and the 'symfony/polyfill-*' packages are not suiteable."
},
"config": {
"process-timeout": 1200
},
"scripts": {
"run:build": [
"@run:clean",
"@run:cs-lint",
"@run:security-check",
"@run:report-coverage-html"
],
"run:clean": [
"[ -d coverage ] && rm -r coverage || true",
"[ -f coverage.xml ] && rm coverage.xml || true",
"@run:remove-runtime-packages"
],
"run:test": [
"phpunit -v --colors=always --exclude-group=runtime,large"
],
"run:test-polyfills": [
"@run:require-symfony-runtime",
"phpunit -v --colors=always --exclude-group=runtime,large",
"@run:require-patchwork-runtime",
"phpunit -v --colors=always --exclude-group=runtime,large",
"@run:remove-runtime-packages"
],
"run:test-all": [
"phpunit -v --colors=always --exclude-group=runtime"
],
"run:test-all-ployfills": [
"@run:require-symfony-runtime",
"phpunit -v --colors=always --exclude-group=runtime",
"@run:require-patchwork-runtime",
"phpunit -v --colors=always --exclude-group=runtime",
"@run:remove-runtime-packages"
],
"run:test-large": [
"phpunit -v --colors=always --exclude-group=runtime --group=large"
],
"run:test-large-polyfills": [
"@run:require-symfony-runtime",
"phpunit -v --colors=always --exclude-group=runtime --group=large",
"@run:require-patchwork-runtime",
"phpunit -v --colors=always --exclude-group=runtime --group=large",
"@run:remove-runtime-packages"
],
"run:test-conformance": [
"phpunit -v --colors=always --exclude-group=runtime --group=conformance"
],
"run:test-conformance-polyfills": [
"@run:require-symfony-runtime",
"phpunit -v --colors=always --exclude-group=runtime --group=conformance",
"@run:require-patchwork-runtime",
"phpunit -v --colors=always --exclude-group=runtime --group=conformance",
"@run:remove-runtime-packages"
],
"run:test-coverage": [
"phpunit -v --colors=always --exclude-group=runtime,large --coverage-text"
],
"run:test-coverage-all": [
"phpunit -v --colors=always --exclude-group=runtime --coverage-text"
],
"run:report-coverage-html": [
"phpunit -v --colors=always --exclude-group=runtime,large --coverage-html coverage"
],
"run:report-coverage-clover": [
"phpunit -v --colors=always --exclude-group=runtime,large --coverage-clover coverage.xml"
],
"run:cs-lint": [
"php-cs-fixer fix --ansi --diff --stop-on-violation --verbose --dry-run --cache-file=.unicode-normalization/php_cs.cache.json"
],
"run:cs-fix": [
"php-cs-fixer fix -vv --ansi --cache-file=.unicode-normalization/php_cs.cache.json"
],
"run:security-check": [
"security-checker security:check --ansi"
],
"run:security-check-bugfix-for-travis": [
"security-checker security:check --ansi --end-point=http://security.sensiolabs.org/check_lock"
],
"run:normalization-test-fixtures-update-check": [
"@php build/scripts/updateNormalizationTestFixtures.php --check --verbose"
],
"run:normalization-test-fixtures-update": [
"@php build/scripts/updateNormalizationTestFixtures.php"
],
"run:require-native-runtime": [
"@run:remove-runtime-packages",
"@composer require --optimize-autoloader --no-interaction --no-progress sjorek/unicode-normalization-native-runtime:0.0.0",
"phpunit --colors=always --group=native"
],
"run:require-symfony-runtime": [
"@run:remove-runtime-packages",
"@composer require --optimize-autoloader --no-interaction --no-progress sjorek/unicode-normalization-symfony-runtime:0.0.0",
"phpunit --colors=always --group=symfony"
],
"run:require-patchwork-runtime": [
"@run:remove-runtime-packages",
"@composer require --optimize-autoloader --no-interaction --no-progress sjorek/unicode-normalization-patchwork-runtime:0.0.0",
"phpunit --colors=always --group=patchwork"
],
"run:remove-runtime-packages": [
"@composer remove --optimize-autoloader --no-interaction sjorek/unicode-normalization-native-runtime sjorek/unicode-normalization-symfony-runtime sjorek/unicode-normalization-patchwork-runtime"
],
"run:venv": [
"@run:venv-remove",
"@run:venv-deploy"
],
"run:venv-deploy": [
"@composer venv:shell -v --lock",
"@composer venv:shell-hook -v --lock",
"@composer venv:link -v --lock",
"@composer venv:git-hook -v --lock"
],
"run:venv-remove": [
"@composer venv:shell -v --remove",
"@composer venv:shell-hook -v --remove",
"@composer venv:link -v --remove",
"@composer venv:git-hook -v --remove"
]
}
}