Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
53 lines (53 loc) · 1.92 KB
/
Copy pathcomposer.json
File metadata and controls
53 lines (53 loc) · 1.92 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
{
"name": "templ/headless-wp-boilerplate",
"description": "Boilerplate for running WordPress as a headless backend, single-site by default with an opt-in multisite mode, with per-site API keys and REST endpoints for contact forms and newsletter signups.",
"type": "project",
"license": "MIT",
"require": {
"php": ">=8.3"
},
"require-dev": {
"brain/monkey": "^2.6",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"phpcompatibility/php-compatibility": "10.0.0-alpha2",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.9",
"wp-coding-standards/wpcs": "^3.1"
},
"autoload-dev": {
"psr-4": {
"Templ\\Headless\\Tests\\Unit\\": "tests/unit/",
"Templ\\Headless\\Tests\\Shared\\": "tests/shared/",
"Templ\\Headless\\Tests\\Integration\\": "tests/integration/",
"Templ\\Headless\\Tests\\Multisite\\": "tests/multisite/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "8.3"
},
"sort-packages": true
},
"scripts": {
"lint": "phpcs",
"lint:fix": "phpcbf",
"test": "phpunit -c phpunit.xml",
"test:integration": "phpunit -c phpunit-integration.xml",
"test:multisite": "phpunit -c phpunit-multisite.xml",
"dev:up": "podman compose up -d",
"dev:up:multisite": "TEMPL_HEADLESS_MULTISITE=1 podman compose up -d",
"dev:down": "podman compose down",
"dev:reset": "podman compose down -v && podman compose up -d",
"dev:reset:multisite": "podman compose down -v && TEMPL_HEADLESS_MULTISITE=1 podman compose up -d",
"dev:logs": "podman compose logs -f wordpress",
"dev:cli": "podman compose run --rm cli",
"dev:install": "podman compose run --rm composer install",
"dev:lint": "podman compose run --rm lint",
"dev:php-floor": "podman compose run --rm php-floor",
"dev:test": "podman compose run --rm unit && podman compose run --rm tests",
"dev:test:multisite": "podman compose run --rm tests-multisite"
}
}