Skip to content

Commit

Permalink
🔩 chore: Mozart integration (#153)
Browse files Browse the repository at this point in the history
* chore: Mozart integration

* fix: Missing dependency directory in the build files

* chore: Update Appsero client for WP 6.7 compatibility
  • Loading branch information
devAsadNur authored Jan 10, 2025
1 parent 9be7adb commit 07b55bb
Show file tree
Hide file tree
Showing 8 changed files with 3,832 additions and 72 deletions.
2 changes: 1 addition & 1 deletion bin/zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ npm run build

# Copy all files
status "Copying files... ✌️"
FILES=(wepos.php readme.txt assets includes languages templates composer.json composer.lock)
FILES=(wepos.php readme.txt assets dependencies includes languages templates composer.json composer.lock)

for file in ${FILES[@]}; do
cp -R $file $BUILD_DIR
Expand Down
40 changes: 36 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,40 @@
"minimum-stability": "dev",
"require": {
"php": ">=7.4",
"appsero/client": "dev-develop",
"appsero/client": "^v2.0.4",
"ext-json": "*"
},
"require-dev": {
"wp-coding-standards/wpcs": "dev-master",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1"
"wp-coding-standards/wpcs": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"coenjacobs/mozart": "^0.7.1"
},
"autoload" : {
"psr-4": {
"WeDevs\\WePOS\\": "includes/"
"WeDevs\\WePOS\\": "includes/",
"WeDevs\\WePOS\\Dependencies\\": "dependencies/"
}
},
"extra": {
"mozart": {
"dep_namespace": "WeDevs\\WePOS\\Dependencies\\",
"dep_directory": "/dependencies/",
"classmap_directory": "/dependencies/classes/",
"classmap_prefix": "WeDevs_WePOS_",
"packages": [
"appsero/client"
],
"excluded_packages": [
"psr/container"
],
"override_autoload": {
"google/apiclient": {
"classmap": [
"src/"
]
}
},
"delete_vendor_directories": true
}
},
"scripts": {
Expand All @@ -30,6 +54,14 @@
],
"phpcbf": [
"phpcbf -p"
],
"post-install-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || \"vendor/bin/mozart\" compose",
"composer dump-autoload"
],
"post-update-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || \"vendor/bin/mozart\" compose",
"composer dump-autoload"
]
},
"config": {
Expand Down
Loading

0 comments on commit 07b55bb

Please sign in to comment.