remove woocommerce-blocks from text domain substitution (#42017)

* remove woocommerce-blocks from text domain substitution

* restore prior art commented out

* add internal-js-tests composer.json

* covert internal-js-tests/changelog to a folder

* update blocks composer.json

* fix path, add composer install to changelog script

* add woo-ai changelog

* add composer install to beta tester changelog script

* add composer.json to woocommerce-admin

* add changelog folder & file to woocommerce-admin

* add composer install to woocommerce changelog script

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
This commit is contained in:
Ron Rennick 2023-12-12 15:38:20 -04:00 committed by GitHub
parent 4e89debd0c
commit 76b4f39116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 2151 additions and 3251 deletions

View File

@ -1,5 +0,0 @@
Significance: patch
Type: dev
Comment: This PR updates repository tooling and doesn't require a changelog entry.

View File

@ -1,5 +0,0 @@
Significance: patch
Type: dev
Comment: This PR updates repository tooling and doesn't require a changelog entry.

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Add composer.json for live build

View File

@ -0,0 +1,32 @@
{
"name": "woocommerce/internal-js-tests",
"description": "JavaScript test tooling.",
"type": "library",
"license": "GPL-3.0-or-later",
"minimum-stability": "dev",
"require-dev": {
"automattic/jetpack-changelogger": "3.3.0"
},
"config": {
"platform": {
"php": "7.4"
}
},
"extra": {
"changelogger": {
"formatter": {
"filename": "../../../tools/changelogger/class-package-formatter.php"
},
"types": {
"fix": "Fixes an existing bug",
"add": "Adds functionality",
"update": "Update existing functionality",
"dev": "Development related task",
"tweak": "A minor adjustment to the codebase",
"performance": "Address performance issues",
"enhancement": "Improve existing functionality"
},
"changelog": "CHANGELOG.md"
}
}
}

View File

@ -1,5 +0,0 @@
Significance: patch
Type: dev
Comment: This PR updates repository tooling and doesn't require a changelog entry.

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Add composer.json for live build

View File

@ -0,0 +1,32 @@
{
"name": "woocommerce/notices",
"description": "State management for notices.",
"type": "library",
"license": "GPL-3.0-or-later",
"minimum-stability": "dev",
"require-dev": {
"automattic/jetpack-changelogger": "3.3.0"
},
"config": {
"platform": {
"php": "7.4"
}
},
"extra": {
"changelogger": {
"formatter": {
"filename": "../../../tools/changelogger/class-package-formatter.php"
},
"types": {
"fix": "Fixes an existing bug",
"add": "Adds functionality",
"update": "Update existing functionality",
"dev": "Development related task",
"tweak": "A minor adjustment to the codebase",
"performance": "Address performance issues",
"enhancement": "Improve existing functionality"
},
"changelog": "CHANGELOG.md"
}
}
}

1077
packages/js/notices/composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
add composer install to changelog script'

View File

@ -35,7 +35,7 @@
"build:admin": "wp-scripts build",
"build:dev": "pnpm lint:js && pnpm build",
"build:zip": "./bin/build-zip.sh",
"changelog": "composer exec -- changelogger",
"changelog": "composer install && composer exec -- changelogger",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format:js": "wp-scripts format-js",

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Add composer.json for live build

View File

@ -0,0 +1,35 @@
{
"name": "woocommerce/woocommerce-admin",
"description": "WooCommerce admin.",
"homepage": "https://woocommerce.com/",
"type": "wordpress-plugin",
"version": "11.8.0-dev",
"license": "GPL-3.0-or-later",
"prefer-stable": true,
"minimum-stability": "dev",
"require-dev": {
"automattic/jetpack-changelogger": "3.3.0"
},
"config": {
"platform": {
"php": "7.4"
}
},
"extra": {
"changelogger": {
"formatter": {
"filename": "../../tools/changelogger/class-package-formatter.php"
},
"types": {
"fix": "Fixes an existing bug",
"add": "Adds functionality",
"update": "Update existing functionality",
"dev": "Development related task",
"tweak": "A minor adjustment to the codebase",
"performance": "Address performance issues",
"enhancement": "Improve existing functionality"
},
"changelog": "CHANGELOG.md"
}
}
}

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
add composer install to changelog script'

View File

@ -67,7 +67,7 @@
"build:admin": "wp-scripts build",
"build:dev": "pnpm lint:js && pnpm build",
"build:zip": "./bin/build-zip.sh",
"changelog": "composer exec -- changelogger",
"changelog": "composer install && composer exec -- changelogger",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format:js": "wp-scripts format-js",

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Add composer.json for live build

View File

@ -4,69 +4,32 @@
"homepage": "https://woocommerce.com/",
"type": "wordpress-plugin",
"version": "11.8.0-dev",
"keywords": [
"gutenberg",
"woocommerce",
"blocks"
],
"license": "GPL-3.0-or-later",
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"ext-hash": "*",
"ext-json": "*",
"composer/installers": "^1.7.0",
"automattic/jetpack-autoloader": "^3.0",
"automattic/jetpack-connection": "^2.1",
"automattic/jetpack-config": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "9.6.15",
"phpunit/php-code-coverage": "9.2.29",
"woocommerce/woocommerce-sniffs": "0.1.3",
"phpdocumentor/reflection": "3.0.1",
"yoast/phpunit-polyfills": "2.0.0",
"nikic/php-parser": "4.16.0 as 1.0.0",
"mockery/mockery": "1.6.6",
"wp-hooks/generator": "0.9.0"
},
"autoload": {
"psr-4": {
"Automattic\\WooCommerce\\StoreApi\\": "src/StoreApi/",
"Automattic\\WooCommerce\\Blocks\\": "src/"
},
"files": [
"src/StoreApi/deprecated.php",
"src/StoreApi/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Automattic\\WooCommerce\\Blocks\\Tests\\": "tests/php"
}
},
"scripts": {
"phpcs": [
"phpcs --extensions=php -s -p"
],
"phpcbf": [
"phpcbf -p"
]
"automattic/jetpack-changelogger": "3.3.0"
},
"config": {
"platform": {
"php": "7.4.33"
},
"allow-plugins": {
"automattic/jetpack-autoloader": true,
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
"php": "7.4"
}
},
"extra": {
"scripts-description": {
"phpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer",
"phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier"
"changelogger": {
"formatter": {
"filename": "../../tools/changelogger/class-package-formatter.php"
},
"types": {
"fix": "Fixes an existing bug",
"add": "Adds functionality",
"update": "Update existing functionality",
"dev": "Development related task",
"tweak": "A minor adjustment to the codebase",
"performance": "Address performance issues",
"enhancement": "Improve existing functionality"
},
"changelog": "CHANGELOG.md"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -33,9 +33,8 @@ if [ -z "$SKIP_UPDATE_TEXTDOMAINS" ]; then
pnpm packages:fix:textdomain
output 2 "Done!"
output 3 "Updating package JS textdomains..."
find ./packages/woocommerce-blocks \( -iname '*.js' -o -iname '*.json' \) -exec sed -i.bak -e "s/'woo-gutenberg-products-block'/'woocommerce'/g" -e "s/\"woo-gutenberg-products-block\"/\"woocommerce\"/g" {} \;
find ./packages/woocommerce-blocks -iname '*.js' -exec sed -i.bak -e "s/'woocommerce-admin'/'woocommerce'/g" -e "s/\"woocommerce-admin\"/\"woocommerce\"/g" {} \;
# output 3 "Updating package JS textdomains..."
# find ./packages/woocommerce-blocks \( -iname '*.js' -o -iname '*.json' \) -exec sed -i.bak -e "s/'woo-gutenberg-products-block'/'woocommerce'/g" -e "s/\"woo-gutenberg-products-block\"/\"woocommerce\"/g" {} \;
fi
# Cleanup backup files

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
remove woocommerce-blocks from text domain substitution

View File

@ -13,7 +13,7 @@
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build:project": "wireit",
"build:zip": "./bin/build-zip.sh",
"changelog": "composer exec -- changelogger",
"changelog": "composer install && composer exec -- changelogger",
"docker:down": "pnpm exec wc-e2e docker:down",
"docker:ssh": "pnpm exec wc-e2e docker:ssh",
"docker:up": "pnpm exec wc-e2e docker:up",