-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
61 lines (61 loc) · 2.5 KB
/
Copy pathcomposer.json
File metadata and controls
61 lines (61 loc) · 2.5 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
{
"require-dev": {
"phpcompatibility/phpcompatibility-wp": "*",
"phpunit/phpunit": "*",
"squizlabs/php_codesniffer": "*",
"wp-cli/i18n-command": "*",
"wp-coding-standards/wpcs": "*",
"yoast/phpunit-polyfills": "*",
"yoast/wp-test-utils": "*"
},
"scripts": {
"phpunit": "vendor/bin/phpunit",
"test": "phpunit",
"phpcs": "phpcs --standard=WordPress . --ignore=vendor/,assets/,node_modules/,tests/js/,wp/,wp-content/,tests/ --colors --warning-severity=0 --extensions=php",
"phpcbf": "phpcbf --standard=WordPress . --ignore=vendor/,assets/,node_modules/,tests/js/,wp/,wp-content/ --colors --warning-severity=0 --extensions=php",
"make-pot": "wp i18n make-pot . languages/exelearning.pot --slug=exelearning --domain=exelearning --exclude=vendor,node_modules,tests,wp,wp-content,dist,exelearning,bin",
"pot-remove-ctime": "sed -i.bak '/POT-Creation-Date:/d' languages/exelearning.pot && rm languages/exelearning.pot.bak",
"po": "@php bin/po-update.php",
"make-mo": "wp i18n make-mo languages/ languages/",
"clean-json": "@php bin/clean-json.php",
"make-json": "wp i18n make-json languages/ languages/ --pretty-print",
"make-translations": [
"@make-pot",
"@pot-remove-ctime",
"@po",
"@untranslated",
"@make-mo",
"@clean-json",
"@make-json"
],
"validate-translations": "@php bin/validate-translations.php",
"i18n-audit": "wp i18n audit . --domain=exelearning --exclude=vendor,node_modules,tests,wp,wp-content,dist,exelearning,bin --format=github-actions",
"untranslated": "for f in languages/exelearning-*.po; do if [ \"$(msgattrib --untranslated \"$f\" | wc -l)\" -ne 0 ]; then echo \"Untranslated strings in $f\"; exit 1; fi; done",
"check-untranslated": [
"@make-pot",
"@pot-remove-ctime",
"@po",
"@untranslated",
"@make-mo"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
}
},
"autoload": {
"psr-4": {
"Exelearning\\": "includes/",
"Exelearning\\Admin\\": "admin/",
"Exelearning\\Public\\": "public/"
}
},
"autoload-dev": {
"psr-4": {
"Exelearning\\Tests\\": "tests/"
}
},
"type": "project"
}