Download the PHP package skyverge/wc-plugin-framework-updater without Composer
On this page you can find all versions of the php package skyverge/wc-plugin-framework-updater. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skyverge/wc-plugin-framework-updater
More information about skyverge/wc-plugin-framework-updater
Files in skyverge/wc-plugin-framework-updater
Package wc-plugin-framework-updater
Short Description Updater script for the SkyVerge WooCommerce plugin framework
License GPL-3.0
Informations about the package wc-plugin-framework-updater
WC Plugin Framework Updater
Updater script for the SkyVerge WooCommerce plugin framework.
This script helps facilitate updating the framework package, which involves replacing class namespaces throughout the code base.
Installation
Include this package as a dev dependency:
Usage
Running manually
-
First update the framework itself to your desired version:
- Then run the migration script:
Note: You will need to have the jq utility installed on your local machine to run update.sh.
As a composer script
You can set this up to run automatically after Composer packages are updated. Update your composer.json file like so:
Then all you have to do is update the framework:
The updater script will then run automatically.
NOTE: It will run after any package is updated, but will exit if it detects that the framework version has not changed.
Replacements made
The script does the following:
- Parses the old version from your declared
FRAMEWORK_VERSIONconstant. - Parses the new version from the framework's
composer.jsonfile (which is why you must update the framework itself first!). - Replaces all instances of
v1_2_3(where1_2_3is the old version) withv_4_5_6(where4_5_6is the new version). This change is made in PHP and JS files only.- Excludes
node_modules/ - Excludes
vendor/
- Excludes
- Updates the
FRAMEWORK_VERSIONconstant number.
Working directory
By default running the script will modify files in the current working directory. If you need to specify a different directory then pass it in as the first argument. Examples:
Absolute path:
Relative path: