{"id":28779569,"url":"https://github.com/godaddy-wordpress/wc-plugin-framework-updater","last_synced_at":"2026-02-27T18:46:49.135Z","repository":{"id":280835494,"uuid":"943338862","full_name":"godaddy-wordpress/wc-plugin-framework-updater","owner":"godaddy-wordpress","description":"Updater script for the SkyVerge WooCommerce plugin framework","archived":false,"fork":false,"pushed_at":"2025-05-08T11:00:51.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-17T17:08:21.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/godaddy-wordpress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-05T14:50:15.000Z","updated_at":"2025-05-08T11:00:54.000Z","dependencies_parsed_at":"2025-05-08T12:29:43.263Z","dependency_job_id":null,"html_url":"https://github.com/godaddy-wordpress/wc-plugin-framework-updater","commit_stats":null,"previous_names":["godaddy-wordpress/wc-plugin-framework-updater"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/godaddy-wordpress/wc-plugin-framework-updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy-wordpress%2Fwc-plugin-framework-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy-wordpress%2Fwc-plugin-framework-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy-wordpress%2Fwc-plugin-framework-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy-wordpress%2Fwc-plugin-framework-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/godaddy-wordpress","download_url":"https://codeload.github.com/godaddy-wordpress/wc-plugin-framework-updater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy-wordpress%2Fwc-plugin-framework-updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878320,"owners_count":25008336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-17T17:08:07.417Z","updated_at":"2026-02-27T18:46:49.128Z","avatar_url":"https://github.com/godaddy-wordpress.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WC Plugin Framework Updater\n\nUpdater script for the [SkyVerge WooCommerce plugin framework](https://github.com/godaddy-wordpress/wc-plugin-framework).\n\nThis script helps facilitate updating the framework package, which involves replacing class namespaces throughout the code base.\n\n## Installation\n\nInclude this package as a dev dependency:\n\n```json\n{\n  \"repositories\": [\n    {\n      \"type\": \"vcs\",\n      \"url\": \"https://github.com/godaddy-wordpress/wc-plugin-framework\"\n    },\n    {\n      \"type\": \"vcs\",\n      \"url\": \"https://github.com/godaddy-wordpress/wc-plugin-framework-updater\"\n    }\n  ],\n  \"require\" : {\n    \"skyverge/wc-plugin-framework\": \"5.15.5\"\n  },\n  \"require-dev\": {\n    \"skyverge/wc-plugin-framework-updater\": \"dev-main\"\n  }\n}\n\n```\n\n## Usage\n\n### Running manually\n\n1. First update the framework itself to your desired version:\n```\ncomposer update skyverge/wc-plugin-framework\n```\n2. Then run the migration script:\n```\n./vendor/skyverge/wc-plugin-framework-updater/update.sh\n```\nNote: You will need to have the [jq](https://jqlang.org/download/) utility installed on your local machine to run `update.sh`.\n\n### As a composer script\n\nYou can set this up to run automatically after Composer packages are updated. Update your `composer.json` file like so:\n\n```json\n{\n  \"scripts\": {\n    \"post-package-update\": [\n      \"if [ -f ./vendor/skyverge/wc-plugin-framework-updater/update.sh ]; then ./vendor/skyverge/wc-plugin-framework-updater/update.sh; fi\"\n    ]\n  }\n}\n```\n\nThen all you have to do is update the framework:\n\n```\ncomposer update skyverge/wc-plugin-framework\n```\n\nThe updater script will then run automatically.\n\n**NOTE:** It will run after _any_ package is updated, but will exit if it detects that the framework version has not changed.\n\n## Replacements made\n\nThe script does the following:\n\n1. Parses the old version from your declared `FRAMEWORK_VERSION` constant.\n2. Parses the new version from the framework's `composer.json` file (which is why you must update the framework itself first!).\n3. Replaces all instances of `v1_2_3` (where `1_2_3` is the old version) with `v_4_5_6` (where `4_5_6` is the new version). This change is made in PHP and JS files only.\n    - Excludes `node_modules/`\n    - Excludes `vendor/`\n4. Updates the `FRAMEWORK_VERSION` constant number.\n\n## Working directory\n\nBy 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:\n\nAbsolute path:\n\n```\n./vendor/skyverge/wc-plugin-framework-updater/update.sh /path/to/your/plugin\n```\n\nRelative path:\n\n```\n./vendor/skyverge/wc-plugin-framework-updater/update.sh ./plugin/\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodaddy-wordpress%2Fwc-plugin-framework-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodaddy-wordpress%2Fwc-plugin-framework-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodaddy-wordpress%2Fwc-plugin-framework-updater/lists"}