-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcomposer.json
95 lines (95 loc) · 3.71 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "dshanske/simple-location",
"description": "Simple Location for WordPress",
"type": "wordpress-plugin",
"license": "GPLv2 or later",
"support": {
"issues": "https://github.com/dshanske/simple-location/issues",
"source": "https://github.com/dshanske/simple-location"
},
"authors": [
{
"name": "David Shanske",
"email": "[email protected]"
}
],
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"civicrm/composer-downloads-plugin": true
}
},
"extra": {
"installer-name": "simple-location",
"downloads": {
"airports": {
"url": "https://davidmegginson.github.io/ourairports-data/airports.csv",
"path": "data/airports.csv",
"type": "file"
},
"airlines": {
"url": "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airlines.dat",
"path": "data/airlines.csv",
"type": "file"
}
}
},
"require": {
"php": ">=7.0"
},
"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",
"civicrm/composer-downloads-plugin": "^4.0",
"simple-icons/simple-icons": "^14.0",
"wpreadme2markdown/wp2md": "^4.1",
"akirk/extract-wp-hooks": "^1.0"
},
"prefer-stable" : true,
"scripts": {
"lint:phpcpd": "./vendor/bin/phpcpd --fuzzy --exclude .git --exclude vendor --exclude node_modules .",
"lint:wpcs": "./vendor/bin/phpcs",
"lint:wpcs-fix": "./vendor/bin/phpcbf",
"lint": "./vendor/bin/phpcs -n -q",
"phpunit": "./vendor/bin/phpunit",
"setup-wp-tests": "bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest",
"setup-cp-tests": "bash bin/install-wp-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",
"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"
]
}