-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
79 lines (79 loc) · 2.67 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
{
"name": "newtovaux/platforminfo",
"description": "PlatformInfo displays, ad-free and no-nag, important information to help you diagnose issues with your WordPress setup or plugin development.",
"type": "project",
"license": "GPLv2",
"autoload": {
"psr-4": {
"Newtovaux\\Platforminfo\\": "include/"
}
},
"authors": [
{
"name": "newtovaux",
"email": "[email protected]"
}
],
"require-dev": {
"squizlabs/php_codesniffer": "^3.6",
"wp-coding-standards/wpcs": "^2.3",
"vimeo/psalm": "^4.18",
"humanmade/psalm-plugin-wordpress": "^2.0",
"cyclonedx/cyclonedx-php-composer": "^3.10"
},
"scripts": {
"lint-all": [
"@lint-php"
],
"lint-php": [
"./vendor/bin/phpcs --config-set installed_paths `pwd`/vendor/wp-coding-standards/wpcs",
"./vendor/bin/phpcs --standard=WordPress -sv platforminfo.php include/"
],
"analyse": [
"./vendor/bin/psalm"
],
"build": [
"rm -f platforminfo.zip",
"cd .. && zip -9 'platforminfo/platforminfo.zip' -r platforminfo/ --exclude @platforminfo/zip-exclude.lst"
],
"deploy": [
"docker-compose run --rm cli wp plugin deactivate --all",
"docker-compose run --rm cli wp plugin uninstall --all",
"@build",
"docker-compose run --rm cli wp plugin install /plugin/platforminfo.zip --force --activate"
],
"logs": [
"docker-compose logs -ft wordpress"
],
"down": [
"docker-compose down"
],
"up": [
"docker-compose up -d"
],
"new": [
"docker-compose run -e HOME=/tmp --rm cli wp core install --url=\"http://localhost\" --title=Test --admin_user=admin --admin_password=password --skip-email --admin_email=\"[email protected]\""
],
"wpupdate": [
"docker-compose run -e HOME=/tmp --rm cli wp core update",
"docker-compose run -e HOME=/tmp --rm cli wp core update-db",
"docker-compose run -e HOME=/tmp --rm cli wp plugin update --all",
"docker-compose run -e HOME=/tmp --rm cli wp theme update --all"
],
"reset": [
"docker-compose run -e HOME=/tmp --rm cli wp db reset --yes",
"@new",
"@wpupdate",
"@deploy"
]
},
"require": {
"php": ">=7.4"
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"cyclonedx/cyclonedx-php-composer": true
}
}
}