-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
46 lines (46 loc) · 1.72 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
{
"name": "amnestywebsite/humanity-salesforce-connector",
"description": "Provides a connection between Salesforce and WordPress via oAuth2",
"scripts": {
"analyse": "./vendor/bin/phpstan analyse --memory-limit=512M",
"lint": "./vendor/bin/phpcs .",
"fix": "./vendor/bin/phpcbf .",
"pre-commit": "composer analyse && composer lint",
"lang": [
"type msgmerge &> /dev/null || { echo 'Please install gettext'; exit 1; }",
"wp i18n make-pot . ./languages/aisc.pot --domain=aisc --exclude=private/node_modules,assets,vendor",
"for p in ./languages/*.po; do msguniq \"$p\" -o \"$p\"; done",
"for p in ./languages/*.po; do msgmerge --quiet -o \"$p.tmp\" --no-fuzzy-matching \"$p\" \"./languages/aisc.pot\"; done",
"for p in ./languages/*.po; do msgattrib --no-obsolete -o \"$p\" \"$p.tmp\"; done",
"for p in ./languages/*.po.tmp; do rm \"$p\"; done",
"for p in ./languages/*.po; do msgfmt -cv --statistics \"$p\" -o \"${p%.*}.mo\"; done"
]
},
"require-dev": {
"amnestywebsite/humanity-theme": "dev-main",
"cmb2/cmb2": "dev-develop",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-strict-rules": "^1.5",
"php-stubs/wordpress-stubs": "^6.4",
"bigbite/phpcs-config": "^2.0.0"
},
"scripts-descriptions": {
"lang": "Updates the POT file, then updates any PO files, and (re)compiles associated MO files",
"lint": "Runs PHP coding standard checks"
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:amnestywebsite/humanity-theme.git"
},
{
"type": "vcs",
"url": "git@github.com:cmb2/cmb2.git"
}
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}