-
Notifications
You must be signed in to change notification settings - Fork 4
/
composer.json
165 lines (165 loc) · 6.37 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
{
"name": "php-ecma-intl/ext",
"description": "A PHP implementation of the ECMA-402 11th Edition Internationalization API Specification.",
"license": "BSD-3-Clause",
"type": "library",
"keywords": [
"ecma402",
"i18n",
"icu",
"internationalization",
"intl",
"l10n",
"localization",
"unicode"
],
"require": {
"php": "^8.2"
},
"require-dev": {
"ext-dom": "*",
"php-ecma-intl/test": "dev-main",
"ramsey/devtools": "^2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload-dev": {
"classmap": [
"src/php/classes/category.stub.php",
"src/php/classes/intl.stub.php",
"src/php/classes/locale.stub.php",
"src/php/classes/locale_character_direction.stub.php",
"src/php/classes/locale_options.stub.php",
"src/php/classes/locale_text_info.stub.php",
"src/php/classes/locale_week_day.stub.php",
"src/php/classes/locale_week_info.stub.php"
]
},
"config": {
"allow-plugins": {
"php-http/discovery": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ramsey/composer-repl": true,
"phpstan/extension-installer": true,
"ergebnis/composer-normalize": true,
"captainhook/plugin-composer": true,
"ramsey/devtools": true,
"pestphp/pest-plugin": true
},
"sort-packages": true
},
"extra": {
"captainhook": {
"force-install": true
},
"ramsey/conventional-commits": {
"configFile": "conventional-commits.json"
},
"ramsey/devtools": {
"command-prefix": "dev",
"commands": {
"build:clean": {
"script": "make clean"
},
"lint:all": {
"override": true,
"script": [
"./tools/clang-format.sh"
]
},
"lint:fix": {
"override": true,
"script": "./tools/clang-format.sh apply"
},
"lint:style": {
"override": true,
"script": "./tools/clang-format.sh"
},
"test:all": {
"override": true,
"script": [
"@dev:test:phpt",
"@dev:test:criterion",
"@dev:test:pest"
]
},
"test:coverage:html": {
"override": true,
"script": [
"git clean -fX ./build/coverage/.",
"@dev:test:criterion",
"gcovr --exclude-directories tests --html-nested --html-syntax-highlighting -o build/coverage/index.html"
]
}
},
"memory-limit": "-1"
}
},
"scripts": {
"build": "@dev:build",
"dev:build": [
"make clean || true",
"phpize",
"./configure --enable-ecma_intl --enable-criterion",
"make -j$(nproc) dev"
],
"dev:build:coverage": [
"make clean || true",
"phpize",
"./configure --enable-ecma_intl --enable-criterion --enable-code-coverage",
"make -j$(nproc) dev"
],
"dev:build:local": [
"./tools/tool-check",
"make clean || true",
"./tools/phpize",
"PKG_CONFIG_PATH=$(brew --prefix icu4c)/lib/pkgconfig ./configure --enable-ecma_intl --enable-criterion --with-php-config=tools/php-config",
"make -j$(nproc) dev"
],
"dev:build:local:coverage": [
"./tools/tool-check",
"make clean || true",
"./tools/phpize",
"PKG_CONFIG_PATH=$(brew --prefix icu4c)/lib/pkgconfig ./configure --enable-ecma_intl --enable-criterion --enable-code-coverage --with-php-config=tools/php-config",
"make -j$(nproc) dev"
],
"dev:docker:run": [
"Composer\\Config::disableProcessTimeout",
"docker compose up -d --build",
"docker exec -it php-ecma-intl-ext bash || true",
"docker compose down"
],
"dev:test:criterion": "LC_ALL=C make -j$(nproc) criterion",
"dev:test:memcheck": "LC_ALL=C USE_ZEND_ALLOC=0 ZEND_DONT_UNLOAD_MODULES=1 php run-tests.php -q -m --show-diff --show-mem --color -n -d extension=\"$PWD/modules/ecma_intl.so\"",
"dev:test:pest": "LC_ALL=C php -d extension=\"$PWD/modules/ecma_intl.so\" vendor/bin/pest",
"dev:test:pest:local": [
"./tools/tool-check",
"LC_ALL=C ./tools/php -d extension=\"$PWD/modules/ecma_intl.so\" vendor/bin/pest"
],
"dev:test:phpt": "LC_ALL=C php run-tests.php -q --show-diff --color -n -d extension=\"$PWD/modules/ecma_intl.so\"",
"dev:test:phpt:local": [
"./tools/tool-check",
"LC_ALL=C ./tools/php run-tests.php -q --show-diff --color -n -d extension=\"$PWD/modules/ecma_intl.so\""
],
"local": "@dev:build:local",
"test:local": [
"@dev:test:phpt:local",
"@dev:test:criterion",
"@dev:test:pest:local"
]
},
"scripts-descriptions": {
"build": "Alias for dev:build; compiles the extension",
"dev:build": "Compiles the extension",
"dev:build:local": "Compiles the extension using php, phpize, and php-config configured in ./tools",
"dev:docker:run": "Creates, runs, and opens a shell to a container for local development and testing",
"dev:test:criterion": "Runs Criterion unit tests",
"dev:test:memcheck": "Runs PHPT tests through Valgrind to check for memory leaks.",
"dev:test:pest": "Runs Pest tests",
"dev:test:pest:local": "Runs Pest tests using php, phpize, and php-config configured in ./tools",
"dev:test:phpt": "Runs PHPT tests",
"dev:test:phpt:local": "Runs PHPT tests using php, phpize, and php-config configured in ./tools",
"local": "Alias for dev:build:local",
"test:local": "Runs all tests using php, phpize, and php-config configured in ./tools"
}
}