-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
44 lines (44 loc) · 1.33 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
{
"name": "wordpress/try-wordpress",
"description": "",
"license": "",
"require-dev": {
"phpunit/phpunit": "^9.6.21",
"yoast/phpunit-polyfills": "^2.0.2",
"wp-coding-standards/wpcs": "^3.1.0"
},
"scripts": {
"lint": "phpcs --standard=phpcs.xml -s",
"lint:fix": "phpcbf --standard=phpcs.xml",
"lint:autofix": [
"@lint",
"@lint:fix"
],
"load:preset": [
"wp-env run cli wp rewrite structure '/%postname%/'",
"wp-env run cli wp rewrite flush"
],
"dev:start": [
"wp-env start",
"@load:preset"
],
"dev:debug": "wp-env start --xdebug",
"dev:stop": "wp-env stop",
"dev:destroy": "yes | wp-env destroy",
"dev:reset": [
"wp-env clean all",
"@dev:start"
],
"dev:db": "wp-env run cli wp db export - > backup.sql",
"dev:db:backup": "wp-env run cli wp db export - > backup-$(date +%Y%m%d-%H%M%S).sql",
"dev:test": "wp-env run tests-cli --env-cwd=wp-content/ plugins/plugin/vendor/bin/phpunit --testdox",
"dev:test:api": "wp-env run tests-cli --env-cwd=wp-content/ plugins/plugin/vendor/bin/phpunit --testdox --filter 'Controller_Test'",
"dev:test:failing": "wp-env run tests-cli --env-cwd=wp-content/ plugins/plugin/vendor/bin/phpunit --testdox --group failing"
},
"config": {
"vendor-dir": "src/plugin/vendor",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}