|
39 | 39 | }
|
40 | 40 | ],
|
41 | 41 | "require": {
|
42 |
| - "mustache/mustache": "^2.14", |
43 |
| - "wp-cli/wp-config-transformer": "^1.3", |
44 |
| - "newfold-labs/wp-module-onboarding-data": "^1.2", |
45 |
| - "newfold-labs/wp-module-patterns": "^2.5", |
46 |
| - "newfold-labs/wp-module-facebook": "^1.0", |
47 |
| - "newfold-labs/wp-module-migration": "^1.0", |
| 42 | + "mustache/mustache": "^2.14.2", |
| 43 | + "wp-cli/wp-config-transformer": "^1.4.1", |
| 44 | + "newfold-labs/wp-module-onboarding-data": "^1.2.1", |
| 45 | + "newfold-labs/wp-module-patterns": "^2.6", |
| 46 | + "newfold-labs/wp-module-facebook": "^1.0.9", |
| 47 | + "newfold-labs/wp-module-migration": "^1.0.12", |
48 | 48 | "wp-forge/helpers": "^2.0"
|
49 | 49 | },
|
50 | 50 | "require-dev": {
|
51 |
| - "wp-phpunit/wp-phpunit": "^6.2", |
52 |
| - "yoast/phpunit-polyfills": "^2.0", |
53 |
| - "newfold-labs/wp-php-standards": "^1.2", |
54 |
| - "wp-cli/i18n-command": "^2.4.3" |
| 51 | + "wp-phpunit/wp-phpunit": "^6.6.2", |
| 52 | + "yoast/phpunit-polyfills": "^2.0.2", |
| 53 | + "newfold-labs/wp-php-standards": "^1.2.4", |
| 54 | + "wp-cli/i18n-command": "^2.6.3" |
55 | 55 | },
|
56 | 56 | "scripts": {
|
57 | 57 | "lint": [
|
58 | 58 | "vendor/bin/phpcs . --standard=Newfold"
|
59 | 59 | ],
|
60 | 60 | "clean": [
|
61 | 61 | "vendor/bin/phpcbf . --standard=Newfold"
|
| 62 | + ], |
| 63 | + "i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-onboarding.pot --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-onboarding/issues\",\"POT-Creation-Date\":\"2024-11-18T07:59:34+00:00\"}' --exclude=assets,tests,src", |
| 64 | + "i18n-po": "vendor/bin/wp i18n update-po ./languages/wp-module-onboarding.pot ./languages", |
| 65 | + "i18n-mo": "vendor/bin/wp i18n make-mo ./languages", |
| 66 | + "i18n-json": "rm -f languages/*.json && vendor/bin/wp i18n make-json ./languages --no-purge --pretty-print", |
| 67 | + "i18n": [ |
| 68 | + "@i18n-pot", |
| 69 | + "@i18n-po", |
| 70 | + "@i18n-mo" |
62 | 71 | ]
|
| 72 | + }, |
| 73 | + "scripts-descriptions": { |
| 74 | + "lint": "Check files against coding standards.", |
| 75 | + "clean": "Automatically fix coding standards issues where possible.", |
| 76 | + "i18n": "Generate new language files.", |
| 77 | + "i18n-pot": "Generate a .pot file for translation.", |
| 78 | + "i18n-po": "Update existing .po files.", |
| 79 | + "i18n-mo": "Generate new language .mo files.", |
| 80 | + "i18n-json": "Generate new language .json files." |
63 | 81 | }
|
64 | 82 | }
|
0 commit comments