Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
93 lines (93 loc) · 3.77 KB
/
Copy pathcomposer.json
File metadata and controls
93 lines (93 loc) · 3.77 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
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "dshanske/simple-location",
"description": "Simple Location for WordPress",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/dshanske/simple-location/issues",
"source": "https://github.com/dshanske/simple-location"
},
"authors": [
{
"name": "David Shanske",
"email": "david@shanske.com"
}
],
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"php-http/discovery": true
}
},
"extra": {
"installer-name": "simple-location"
},
"require": {
"php": ">=7.4"
},
"require-dev": {
"composer/installers": "^1.0 | ^2.0",
"emcconville/google-map-polyline-encoding-tool": "^1.3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"squizlabs/php_codesniffer": "^2.2 || ^3.0.2",
"phpcompatibility/php-compatibility": "*",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"wp-cli/i18n-command": "^2.3",
"sebastian/phpcpd": "^3.0 || ^4.0 || ^6.0",
"yoast/phpunit-polyfills": "^1.0",
"sokil/php-isocodes": "^2.0 || ^4.1.0",
"dms/phpunit-arraysubset-asserts": "^0.4.0",
"sirbrillig/phpcs-variable-analysis": "^2.11",
"scssphp/scssphp": "^1.13.0",
"simple-icons/simple-icons": "^14.0",
"wpreadme2markdown/wp2md": "^4.1",
"akirk/extract-wp-hooks": "^1.0",
"phpstan/phpstan": "^2.1",
"szepeviktor/phpstan-wordpress": "^2.0",
"symfony/yaml": "^5.4 || ^6.0 || ^7.0",
"php-stubs/wp-cli-stubs": "^2.12"
},
"prefer-stable" : true,
"scripts": {
"lint:phpcpd": "./vendor/bin/phpcpd --fuzzy --exclude .git --exclude vendor --exclude node_modules .",
"phpcs": "./vendor/bin/phpcs",
"phpcbf": "./vendor/bin/phpcbf",
"lint": "./vendor/bin/phpcs -n -q",
"phpunit": "./vendor/bin/phpunit",
"phpunit:coverage": "@php -d pcov.enabled=1 -d pcov.directory=. ./vendor/bin/phpunit --coverage-text",
"setup-wp-tests": "bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest",
"setup-cp-tests": "bash bin/install-cp-tests.sh cpc_test root root 127.0.0.1 latest",
"make-pot": "./vendor/bin/wp i18n make-pot . languages/simple-location.pot",
"lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor --exclude node_modules .",
"plugin-check": "./vendor/bin/wp plugin check simple-location --exclude-checks=file_type --exclude-directories='./bin','./.github'",
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"wp2md": "vendor/bin/wp2md -i readme.txt -o readme.md",
"php-isocodes": "vendor/sokil/php-isocodes/bin/update_iso_codes_db.sh all vendor/sokil/php-isocodes",
"copy-files": [
"cp -u -r vendor/sokil/php-isocodes/databases/iso_3166-2/*.json data/iso_3166-2/",
"cp -u -r vendor/sokil/php-isocodes/databases/iso_3166-1.json data/"
],
"update-docs": "./vendor/bin/extract-wp-hooks.php",
"update-data": [
"Composer\\Config::disableProcessTimeout",
"@php bin/update-data.php"
],
"update-meteocons": "@php bin/update-meteocons.php",
"phpstan": "./vendor/bin/phpstan analyse --memory-limit=1G",
"build-css": [
"vendor/bin/pscss --style=expanded sass/main.scss css/location.css",
"vendor/bin/pscss --style=compressed sass/main.scss css/location.min.css",
"vendor/bin/pscss --style=expanded sass/admin.scss css/location-admin.css",
"vendor/bin/pscss --style=compressed sass/admin.scss css/location-admin.min.css"
]
},
"post-update-cmd": [
"@php-isocodes",
"@copy-files"
]
}