-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathcomposer.json
More file actions
80 lines (80 loc) · 2.54 KB
/
composer.json
File metadata and controls
80 lines (80 loc) · 2.54 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
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
{
"name": "wordpress/sqlite-database-integration",
"license": "GPL-2.0-or-later",
"description": "SQLite integration plugin for WordPress.",
"homepage": "https://github.com/wordpress/sqlite-database-integration",
"keywords": [ "wordpress", "plugin", "database", "sqlite" ],
"support": {
"issues": "https://github.com/wordpress/sqlite-database-integration/issues"
},
"require": {
"php": ">=7.2",
"ext-pdo": "*",
"ext-pdo_sqlite": "*"
},
"require-dev": {
"ext-mbstring": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"squizlabs/php_codesniffer": "^3.7",
"wp-coding-standards/wpcs": "^3.1",
"phpcompatibility/phpcompatibility-wp": "*",
"php-parallel-lint/php-parallel-lint": "^1.3",
"yoast/phpunit-polyfills": "2.0.0",
"phpunit/phpunit": "8.5.52"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"process-timeout": 3600
},
"scripts": {
"check-cs": [
"@php ./vendor/bin/phpcs"
],
"fix-cs": [
"@php ./vendor/bin/phpcbf"
],
"test": [
"phpunit"
],
"test-e2e": [
"@wp-test-ensure-env @no_additional_args",
"rm -f tests/e2e/package.json tests/e2e/node_modules @no_additional_args",
"ln -s ../../wordpress/package.json tests/e2e/package.json @no_additional_args",
"ln -s ../../wordpress/node_modules tests/e2e/node_modules @no_additional_args",
"npm --prefix tests/e2e run test:e2e -- --config . @additional_args"
],
"wp-setup": [
"./wp-setup.sh"
],
"wp-run": [
"npm --prefix wordpress run"
],
"wp-test-start": [
"npm --prefix wordpress run env:start",
"npm --prefix wordpress run env:install",
"npm --prefix wordpress run env:cli -- plugin install gutenberg --version=22.3.0",
"npm --prefix wordpress run env:cli -- plugin install query-monitor"
],
"wp-test-ensure-env": [
"if [ ! -f wordpress/src/wp-load.php ]; then composer run wp-setup; fi",
"@putenv COMPOSE_IGNORE_ORPHANS=true",
"cd wordpress && if [ -z \"$(node tools/local-env/scripts/docker.js ps -q)\" ]; then cd ..; composer run wp-test-start; fi"
],
"wp-test-php": [
"@wp-test-ensure-env @no_additional_args",
"rm -rf wordpress/src/wp-content/database/.ht.sqlite @no_additional_args",
"npm --prefix wordpress run test:php -- @additional_args"
],
"wp-test-e2e": [
"@wp-test-ensure-env @no_additional_args",
"npm --prefix wordpress run test:e2e -- @additional_args"
],
"wp-test-clean": [
"npm --prefix wordpress run env:clean",
"rm -rf wordpress/src/wp-content/database/.ht.sqlite"
]
}
}