-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
58 lines (57 loc) · 2.57 KB
/
composer.json
File metadata and controls
58 lines (57 loc) · 2.57 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
{
"require": {
"tinybutstrong/tinybutstrong": "*",
"tinybutstrong/opentbs": "*"
},
"require-dev": {
"carthage-software/mago": "^1.13",
"phpunit/phpunit": "*",
"wp-cli/i18n-command": "*",
"yoast/phpunit-polyfills": "*",
"yoast/wp-test-utils": "*",
"brianium/paratest": "^6.11",
"phpmd/phpmd": "^2.15"
},
"scripts": {
"post-install-cmd": [
"rm -rf admin/vendor/tinybutstrong",
"cp -r vendor/tinybutstrong admin/vendor/"
],
"post-update-cmd": [
"rm -rf admin/vendor/tinybutstrong",
"cp -r vendor/tinybutstrong admin/vendor/"
],
"phpunit": "vendor/bin/phpunit",
"test": "@phpunit",
"test:coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --colors=always --coverage-text --coverage-html artifacts/coverage/html --coverage-clover artifacts/coverage/clover.xml --coverage-filter=admin --coverage-filter=includes --coverage-filter=public --coverage-filter=documentate.php --coverage-filter=uninstall.php",
"test:e2e": "wp-scripts test-playwright",
"test:e2e:ui": "wp-scripts test-playwright --ui",
"phpcs": "@php ./vendor/bin/mago lint",
"phpcbf": "@php ./vendor/bin/mago format",
"make-pot": "wp i18n make-pot . languages/documentate.pot --domain=documentate --exclude=vendor,assets,node_modules,tests,wp,wp-content --include=**/*.php",
"pot-remove-refs": "sed -i.bak '/^#: /d' languages/documentate.pot && rm languages/documentate.pot.bak",
"update-po": "wp i18n update-po languages/documentate.pot languages/documentate-es_ES.po",
"make-mo": "wp i18n make-mo languages/ languages/",
"pot-remove-ctime": "sed -i.bak '/POT-Creation-Date:/d' languages/documentate.pot && rm languages/documentate.pot.bak",
"untranslated": "msgattrib --untranslated languages/documentate-es_ES.po && [ $(msgattrib --untranslated languages/documentate-es_ES.po | wc -l) -eq 0 ]",
"check-untranslated": "composer make-pot && composer pot-remove-ctime && composer pot-remove-refs && composer update-po && composer untranslated && composer make-mo"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
},
"autoload": {
"psr-4": {
"Documentate\\": "includes/",
"Documentate\\Admin\\": "admin/",
"Documentate\\Public\\": "public/"
}
},
"autoload-dev": {
"psr-4": {
"Documentate\\Tests\\": "tests/"
}
},
"type": "project"
}