-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathcomposer.json
More file actions
69 lines (69 loc) · 3.22 KB
/
Copy pathcomposer.json
File metadata and controls
69 lines (69 loc) · 3.22 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
{
"name": "wordcamp/wordcamp.org",
"description": "",
"homepage": "https://wordcamp.org",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/WordPress/wordcamp.org/issues"
},
"config": {
"platform": {
"php": "8.3"
},
"vendor-dir": "public_html/wp-content/mu-plugins/vendor",
"_comment": "Work around `test:watch` timeout, see https://github.com/spatie/phpunit-watcher/issues/63#issuecomment-545633709",
"process-timeout": 0,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true,
"automattic/jetpack-autoloader": true
}
},
"extra": {
"_installer_paths_comment": "Nothing here may install into `wp-content/plugins` or `wp-content/themes` -- those paths are managed by `svn:externals` on the deploy checkout, and Composer replaces a package's directory wholesale. WordPress plugins and themes needed for local development live in `composer-dev.json` instead.",
"installer-paths": {
"public_html/wp-content/mu-plugins/vendor/{$vendor}/{$name}/": ["wordpress/mcp-adapter"],
"public_html/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"]
}
},
"require": {
"adhocore/jwt": "^1.0",
"scssphp/scssphp": "^2.1.0",
"wordpress/mcp-adapter": "^0.6.1"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"wp-coding-standards/wpcs": "^3.3.0",
"phpcompatibility/phpcompatibility-wp": "*",
"phpunit/phpunit": "^9",
"sirbrillig/phpcs-changed": "^2.12.0",
"spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^4.0",
"composer/installers": "^2.2",
"quickbooks/v3-php-sdk": "*"
},
"scripts": {
"format": "phpcbf -p",
"lint": "phpcs",
"test": "phpunit",
"test:watch": "phpunit-watcher watch < /dev/tty",
"test:watch:group": "phpunit-watcher watch --group=",
"_test:watch:fast_comment": "This can't use `@test:watch`, because that only works if `@` is the first character in the string. It can't manually call `composer run test:watch`, because that strips out extra arguments like `-- group=sunrise`. This must be manually kept in sync with the `test:watch` command.",
"test:watch:fast": "WP_TESTS_SKIP_INSTALL=1 phpunit-watcher watch < /dev/tty",
"test:db:reset": "/usr/bin/env php .docker/bin/reset-tests-database.php",
"test:coverage": "php -d xdebug.mode=coverage public_html/wp-content/mu-plugins/vendor/bin/phpunit --coverage-html .phpunit/coverage-report",
"phpcs-changed": "BASE_REF=production php .github/bin/phpcs-branch.php ",
"_comment": "Below script names left in for back-compat",
"phpcs": "phpcs",
"phpcbf": "phpcbf -p",
"tw": "@test:watch",
"twg": "@test:watch:group",
"_composer_dev_comment": "`composer-dev.json` installs the WordPress plugins and themes that only the local environment needs. Chaining it here keeps `composer install` and `composer update` doing what they always have. The deploy checkout skips it by passing `--no-scripts`, so Composer never touches the `svn:externals` directories there.",
"post-install-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || COMPOSER=composer-dev.json composer install --no-interaction"
],
"post-update-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || COMPOSER=composer-dev.json composer update --no-interaction"
]
}
}