|
1 | 1 | {
|
2 |
| - "name": "newfold-labs/wp-module-onboarding", |
3 |
| - "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", |
4 |
| - "type": "library", |
5 |
| - "license": "GPL-2.0-or-later", |
6 |
| - "authors": [ |
7 |
| - { |
8 |
| - "name": "Dave Ryan", |
9 |
| - |
10 |
| - } |
11 |
| - ], |
12 |
| - "autoload": { |
13 |
| - "psr-4": { |
14 |
| - "NewfoldLabs\\WP\\Module\\Onboarding\\": "includes/" |
15 |
| - }, |
16 |
| - "files": [ |
17 |
| - "bootstrap.php" |
18 |
| - ] |
19 |
| - }, |
20 |
| - "config": { |
21 |
| - "allow-plugins": { |
22 |
| - "dealerdirect/phpcodesniffer-composer-installer": true |
23 |
| - }, |
24 |
| - "platform": { |
25 |
| - "php": "7.3.0" |
26 |
| - } |
27 |
| - }, |
28 |
| - "repositories": [ |
| 2 | + "name": "newfold-labs/wp-module-onboarding", |
| 3 | + "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", |
| 4 | + "type": "library", |
| 5 | + "license": "GPL-2.0-or-later", |
| 6 | + "authors": [ |
29 | 7 | {
|
30 |
| - "type": "composer", |
31 |
| - "url": "https://newfold-labs.github.io/satis/", |
32 |
| - "only": [ |
33 |
| - "newfold-labs/*" |
34 |
| - ] |
| 8 | + "name": "Dave Ryan", |
| 9 | + |
| 10 | + } |
| 11 | + ], |
| 12 | + "autoload": { |
| 13 | + "psr-4": { |
| 14 | + "NewfoldLabs\\WP\\Module\\Onboarding\\": "includes/" |
35 | 15 | },
|
36 |
| - { |
| 16 | + "files": [ |
| 17 | + "bootstrap.php" |
| 18 | + ] |
| 19 | + }, |
| 20 | + "config": { |
| 21 | + "allow-plugins": { |
| 22 | + "dealerdirect/phpcodesniffer-composer-installer": true, |
| 23 | + "composer/installers": true, |
| 24 | + "johnpbloch/wordpress-core-installer": true |
| 25 | + }, |
| 26 | + "platform": { |
| 27 | + "php": "7.3" |
| 28 | + } |
| 29 | + }, |
| 30 | + "repositories": { |
| 31 | + "outlandishideas/wpackagist": { |
| 32 | + "type": "composer", |
| 33 | + "url": "https://wpackagist.org" |
| 34 | + }, |
| 35 | + "0": { |
| 36 | + "type": "composer", |
| 37 | + "url": "https://newfold-labs.github.io/satis/", |
| 38 | + "only": [ |
| 39 | + "newfold-labs/*" |
| 40 | + ] |
| 41 | + }, |
| 42 | + "1": { |
37 | 43 | "type": "vcs",
|
38 | 44 | "url": "[email protected]:InstaWP/connect-helpers.git",
|
39 | 45 | "only": [
|
40 |
| - "instawp/*" |
| 46 | + "instawp/*" |
41 | 47 | ]
|
42 | 48 | }
|
43 |
| - ], |
44 |
| - "require": { |
45 |
| - "mustache/mustache": "^2.14.2", |
46 |
| - "wp-cli/wp-config-transformer": "^1.4.1", |
47 |
| - "newfold-labs/wp-module-onboarding-data": "^1.2.6", |
48 |
| - "newfold-labs/wp-module-patterns": "^2.6", |
49 |
| - "newfold-labs/wp-module-facebook": "^1.0.9", |
50 |
| - "newfold-labs/wp-module-migration": "^1.0.12", |
51 |
| - "wp-forge/helpers": "^2.0" |
52 |
| - }, |
53 |
| - "require-dev": { |
54 |
| - "wp-phpunit/wp-phpunit": "^6.6.2", |
55 |
| - "yoast/phpunit-polyfills": "^2.0.2", |
56 |
| - "newfold-labs/wp-php-standards": "^1.2.4", |
57 |
| - "wp-cli/i18n-command": "^2.6.3" |
58 |
| - }, |
59 |
| - "scripts": { |
60 |
| - "fix": [ |
61 |
| - "vendor/bin/phpcbf . --standard=phpcs.xml" |
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-php": "vendor/bin/wp i18n make-php ./languages", |
67 |
| - "i18n-json": "find ./languages -type f -name \"*.po\" -print0 | xargs -0 -I {} sh -c 'name=$(basename \"$1\" .po); npx po2json languages/\"$name\".po languages/\"$name\"-nfd-onboarding.json -f jed1.x' -- {}", |
68 |
| - "i18n": [ |
69 |
| - "@i18n-pot", |
70 |
| - "@i18n-po", |
71 |
| - "@i18n-php", |
72 |
| - "@i18n-json" |
73 |
| - ], |
74 |
| - "lint": [ |
75 |
| - "vendor/bin/phpcs . --standard=phpcs.xml" |
76 |
| - ] |
77 |
| - }, |
78 |
| - "scripts-descriptions": { |
79 |
| - "lint": "Check files against coding standards.", |
80 |
| - "clean": "Automatically fix coding standards issues where possible.", |
81 |
| - "i18n": "Generate new language files.", |
82 |
| - "i18n-pot": "Generate a .pot file for translation.", |
83 |
| - "i18n-po": "Update existing .po files.", |
84 |
| - "i18n-mo": "Generate new language .mo files.", |
85 |
| - "i18n-json": "Generate new language .json files." |
86 |
| - } |
| 49 | + }, |
| 50 | + "require": { |
| 51 | + "mustache/mustache": "^2.14.2", |
| 52 | + "wp-cli/wp-config-transformer": "^1.4.1", |
| 53 | + "newfold-labs/wp-module-onboarding-data": "^1.2.6", |
| 54 | + "newfold-labs/wp-module-patterns": "^2.6", |
| 55 | + "newfold-labs/wp-module-facebook": "^1.0.9", |
| 56 | + "newfold-labs/wp-module-migration": "^1.0.12", |
| 57 | + "wp-forge/helpers": "^2.0" |
| 58 | + }, |
| 59 | + "require-dev": { |
| 60 | + "php": ">=7.3", |
| 61 | + "wp-phpunit/wp-phpunit": "^6.6.2", |
| 62 | + "yoast/phpunit-polyfills": "^2.0.2", |
| 63 | + "newfold-labs/wp-php-standards": "^1.2.4", |
| 64 | + "wp-cli/i18n-command": "^2.6.3", |
| 65 | + "johnpbloch/wordpress": "6.1.7", |
| 66 | + "lucatume/wp-browser": "*", |
| 67 | + "phpunit/phpcov": "*" |
| 68 | + }, |
| 69 | + "scripts": { |
| 70 | + "fix": [ |
| 71 | + "vendor/bin/phpcbf . --standard=phpcs.xml" |
| 72 | + ], |
| 73 | + "i18n": [ |
| 74 | + "@i18n-pot", |
| 75 | + "@i18n-po", |
| 76 | + "@i18n-php", |
| 77 | + "@i18n-json" |
| 78 | + ], |
| 79 | + "i18n-json": "find ./languages -type f -name \"*.po\" -print0 | xargs -0 -I {} sh -c 'name=$(basename \"$1\" .po); npx po2json languages/\"$name\".po languages/\"$name\"-nfd-onboarding.json -f jed1.x' -- {}", |
| 80 | + "i18n-mo": "vendor/bin/wp i18n make-mo ./languages", |
| 81 | + "i18n-php": "vendor/bin/wp i18n make-php ./languages", |
| 82 | + "i18n-po": "vendor/bin/wp i18n update-po ./languages/wp-module-onboarding.pot ./languages", |
| 83 | + "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", |
| 84 | + "lint": [ |
| 85 | + "vendor/bin/phpcs . --standard=phpcs.xml" |
| 86 | + ], |
| 87 | + "test": [ |
| 88 | + "codecept run wpunit" |
| 89 | + ], |
| 90 | + "test-coverage": [ |
| 91 | + "codecept run wpunit --coverage wpunit.cov", |
| 92 | + "phpcov merge --php tests/_output/merged.cov --html tests/_output/html tests/_output;", |
| 93 | + "echo \"open tests/_output/html/index.html\" to view the report" |
| 94 | + ] |
| 95 | + }, |
| 96 | + "scripts-descriptions": { |
| 97 | + "clean": "Automatically fix coding standards issues where possible.", |
| 98 | + "i18n": "Generate new language files.", |
| 99 | + "i18n-json": "Generate new language .json files.", |
| 100 | + "i18n-mo": "Generate new language .mo files.", |
| 101 | + "i18n-po": "Update existing .po files.", |
| 102 | + "i18n-pot": "Generate a .pot file for translation.", |
| 103 | + "lint": "Check files against coding standards.", |
| 104 | + "test": "Run tests.", |
| 105 | + "test-coverage": "Run tests with coverage, merge coverage and create HTML report." |
| 106 | + } |
87 | 107 | }
|
0 commit comments