forked from GoogleChromeLabs/pwa-wp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
64 lines (64 loc) · 1.82 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
{
"name": "google/pwa-wp",
"description": "WordPress plugin for adding PWA support.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"homepage": "https://github.com/GoogleChromeLabs/pwa-wp",
"require": {
"php": "^7.0 || ^8.0",
"ext-json": "*"
},
"require-dev": {
"automattic/vipwpcs": "3.0.1",
"civicrm/composer-downloads-plugin": "^3.0",
"php-stubs/wordpress-stubs": "^6.6.0",
"phpcompatibility/phpcompatibility-wp": "2.1.5",
"wp-cli/wp-cli": "^2.10",
"wp-coding-standards/wpcs": "3.1.0",
"wp-phpunit/wp-phpunit": "^6.6",
"yoast/wp-test-utils": "1.2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"civicrm/composer-downloads-plugin": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "7.2"
},
"sort-packages": true
},
"extra": {
"downloads": {
"composer-normalize": {
"path": "vendor/bin/composer-normalize",
"type": "phar",
"url": "https://github.com/ergebnis/composer-normalize/releases/latest/download/composer-normalize.phar"
},
"phpstan": {
"path": "vendor/bin/phpstan",
"type": "phar",
"url": "https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar"
},
"phpunit": {
"path": "vendor/bin/_phpunit",
"type": "phar",
"url": "https://phar.phpunit.de/phpunit-9.phar"
}
}
},
"scripts": {
"post-install-cmd": [
"@php -r \"if (file_exists('vendor/bin/_phpunit')) { rename('vendor/bin/_phpunit', 'vendor/bin/phpunit'); }\""
],
"post-update-cmd": [
"composer run-script post-install-cmd"
],
"analyze": "phpstan analyze --ansi --memory-limit=1G",
"pre-commit": [
"npm run lint:staged"
]
}
}