-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
52 lines (52 loc) · 1.31 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
{
"name": "bigbite/sample-i18n-plugin",
"description": "",
"type": "wordpress-plugin",
"version": "1.0.0-alpha.1",
"require-dev": {
"bigbite/phpcs-config": "^2.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.6",
"szepeviktor/phpstan-wordpress": "^1.3"
},
"autoload": {
"files": [
"inc/constants.php",
"inc/asset-settings.php",
"inc/setup.php",
"inc/frontend/after-body-tag.php"
],
"psr-4": {
"Big_Bite\\Sample_I18n_Plugin\\": "inc/"
},
"classmap": [ "inc/" ]
},
"scripts": {
"phpcs": "./vendor/bin/phpcs .",
"phpstan": "./vendor/bin/phpstan analyse --memory-limit=256M",
"phpunit": "./vendor/bin/phpunit",
"pre-commit": [
"@phpcs",
"@phpstan",
"@phpunit"
],
"makePot": "wp i18n make-pot . ./languages/mydomain.pot --domain=mydomain --exclude=node_modules,src,vendor",
"lang": [
"@makePot",
"wp i18n update-po ./languages/mydomain.pot",
"wp i18n make-mo ./languages",
"wp i18n make-json ./languages --no-purge"
],
"langci": [
"@lang",
"wp i18n make-mo ./languages/",
"wp i18n make-json ./languages"
]
},
"config": {
"preferred-install": "dist",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}