-
Notifications
You must be signed in to change notification settings - Fork 4
/
composer.json
135 lines (135 loc) · 4.8 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
{
"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": {
"captainhook/plugin-composer": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"pestphp/pest-plugin": true,
"php-http/discovery": true,
"phpstan/extension-installer": true,
"ramsey/composer-repl": true,
"ramsey/devtools": 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: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": [
"Composer\\Config::disableProcessTimeout",
"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:phpt": "LC_ALL=C php run-tests.php -q --show-diff --color -n -d extension=\"$PWD/modules/ecma_intl.so\""
},
"scripts-descriptions": {
"build": "Alias for dev:build; compiles the extension",
"dev:build": "Compiles the extension",
"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:phpt": "Runs PHPT tests"
}
}