-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
103 lines (103 loc) · 3.39 KB
/
Copy pathcomposer.json
File metadata and controls
103 lines (103 loc) · 3.39 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "newfold-labs/wp-module-editor-chat",
"description": "Site Editor AI Chat",
"type": "library",
"license": [
"GPL-2.0-or-later"
],
"autoload": {
"psr-4": {
"NewfoldLabs\\WP\\Module\\EditorChat\\": "includes/"
},
"files": [
"bootstrap.php"
]
},
"authors": [
{
"name": "Hristina Conjic",
"email": "hristina.conjic@newfold.com"
}
],
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "7.3.0"
},
"platform-check": false,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true,
"johnpbloch/wordpress-core-installer": true
},
"preferred-install": {
"newfold-labs/*": "source",
"*": "dist"
}
},
"scripts": {
"lint": [
"vendor/bin/phpcs . --ignore=*/build/* --standard=phpcs.xml -d error_reporting=\"E_ALL&~E_DEPRECATED\""
],
"clean": [
"vendor/bin/phpcbf . --ignore=*/build/* --standard=phpcs.xml -d error_reporting=\"E_ALL&~E_DEPRECATED\""
],
"i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/nfd-wonder-blocks.pot --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-patterns/issues\",\"POT-Creation-Date\":\"2025-02-13T09:55:55+00:00\"}' --exclude=tests,src,wordpress --domain=nfd-wonder-blocks",
"i18n-po": "vendor/bin/wp i18n update-po ./languages/nfd-wonder-blocks.pot ./languages",
"i18n-php": "vendor/bin/wp i18n make-php ./languages --pretty-print",
"i18n-json": "rm -f languages/*.json && vendor/bin/wp i18n make-json ./languages --pretty-print",
"i18n": [
"@i18n-pot",
"@i18n-po",
"@i18n-php",
"@i18n-json"
],
"i18n-ci-pre": [
"@i18n-pot",
"@i18n-po"
],
"i18n-ci-post": [
"@i18n-json",
"@i18n-php"
],
"test": [
"codecept run wpunit"
],
"test-coverage": [
"codecept run wpunit --coverage wpunit.cov",
"phpcov merge --php tests/_output/merged.cov --html tests/_output/html tests/_output;",
"echo \"open tests/_output/html/index.html\" to view the report"
]
},
"repositories": {
"0": {
"type": "composer",
"url": "https://newfold-labs.github.io/satis/",
"only": [
"newfold-labs/*"
]
}
},
"require": {},
"require-dev": {
"johnpbloch/wordpress": "@stable",
"lucatume/wp-browser": "*",
"newfold-labs/wp-php-standards": "^1.2.6",
"phpunit/phpcov": "*",
"wp-cli/i18n-command": "^2.7.0"
},
"scripts-descriptions": {
"lint": "Check files against coding standards.",
"clean": "Automatically fix coding standards issues where possible.",
"i18n-pot": "Scan source and generate the POT translation template using wp i18n make-pot.",
"i18n-po": "Update PO files from the POT file using wp i18n update-po.",
"i18n-php": "Generate PHP translation files from PO files using wp i18n make-php.",
"i18n-json": "Remove stale JSON catalogs, then generate JED JSON from PO files using wp i18n make-json.",
"i18n": "Run the full local i18n pipeline (POT, PO, PHP, JSON).",
"i18n-ci-pre": "CI: regenerate the POT file and sync PO catalogs from it.",
"i18n-ci-post": "CI: regenerate JED JSON and PHP translation files from PO catalogs.",
"test": "Run tests.",
"test-coverage": "Run tests with coverage, merge coverage and create HTML report."
}
}