Skip to content

Commit

Permalink
Version 1.6.2 - Hotfix release 🔨 (#24)
Browse files Browse the repository at this point in the history
* Composes dependencies that might cause conflicts as a package

* feat: Add `mozart` script

* Exclude "Dependencies" directory

* fix: Update Pimple namespace

* DELETED

* Ignore "src/Dependencies"

* fix: Install mozart as a development dependency

* Bump plugin version

* Add new version changelog

Update plugin version

* Generate

* Exclude "classes" folder

* Rename "Dependencies" → "Vendor"
  • Loading branch information
mahdiyazdani authored Aug 20, 2023
1 parent 446d1ef commit 955b282
Show file tree
Hide file tree
Showing 8 changed files with 1,110 additions and 207 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build/Release
node_modules/
vendor/
build/
src/Vendor/

# Unit tests
/tmp
Expand All @@ -46,4 +47,4 @@ build/
.idea

# Archive
*.zip
*.zip
33 changes: 28 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"exclude": [
"!/languages",
"!vendor/*",
"!src/Vendor/*",
"docs",
"classes",
"node_modules",
"CODE_OF_CONDUCT.md",
"composer.json",
Expand Down Expand Up @@ -33,6 +35,18 @@
},
"description": "Add additional terms and condition checkbox to the WooCommerce checkout.",
"extra": {
"mozart": {
"classmap_directory": "/classes/dependencies/",
"delete_vendor_directories": true,
"dep_directory": "/src/Vendor/",
"dep_namespace": "Woo_Additional_Terms\\Vendor\\",
"excluded_packages": [
"psr/container"
],
"packages": [
"pimple/pimple"
]
},
"scripts-description": {
"lint:wpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier",
"lint:wpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer",
Expand All @@ -50,10 +64,10 @@
"require": {
"mahdiyazdani/wc-install-notice": "1.0.0",
"mahdiyazdani/wp-footer-rate": "1.0.1",
"php": ">=7.4",
"pimple/pimple": "^3.5"
"php": ">=7.4"
},
"require-dev": {
"coenjacobs/mozart": "^0.7.1",
"dealerdirect/phpcodesniffer-composer-installer": "0.7.2",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phpcompatibility/phpcompatibility-wp": "2.1.3",
Expand All @@ -62,19 +76,28 @@
"woocommerce/woocommerce-git-hooks": "*",
"woocommerce/woocommerce-sniffs": "*",
"wp-cli/i18n-command": "2.4.0",
"wp-coding-standards/wpcs": "2.3.0"
"wp-coding-standards/wpcs": "2.3.0",
"pimple/pimple": "^3.5"
},
"scripts": {
"bundle": [
"composer lint:wpcbf",
"rm -rf woo-additional-terms.zip",
"composer install --no-dev",
"composer install --no-dev --no-scripts",
"composer archive --file=woo-additional-terms --format=zip",
"composer install -vvv"
],
"lint:wpcbf": "phpcbf --extensions=php -p --runtime-set testVersion 7.4-",
"lint:wpcs": "phpcs --extensions=php -s -p --runtime-set testVersion 7.4-",
"make-pot": "wp i18n make-pot . languages/woo-additional-terms.pot --domain=woo-additional-terms"
"make-pot": "wp i18n make-pot . languages/woo-additional-terms.pot --domain=woo-additional-terms",
"post-install-cmd": [
"vendor/bin/mozart compose",
"composer dump-autoload"
],
"post-update-cmd": [
"vendor/bin/mozart compose",
"composer dump-autoload"
]
},
"type": "wordpress-plugin"
}
Loading

0 comments on commit 955b282

Please sign in to comment.