QuackieMackie
Active member
This suggestion is being made to re ignite an old suggestion that had a lack of interest. https://xenforo.com/community/threa...without-needing-a-full-xf-environment.187253/
As the title suggests, I’d like to see the
At the moment, this isn’t possible because
This dependency makes it impossible to perform a full release build in environments where a database isn’t available.
Removing XenForo’s current database dependency when building a release would mean developers would be able to automate their workflows, for example:
- Automatically build and package add-ons in CI/CD systems (e.g., GitHub, GitLab) when changes are pushed or a release is tagged.
Proposed solution
There are a couple of approaches, I could think of:
As the title suggests, I’d like to see the
php cmd.php xf-addon:build-release Vendor/Addon command function independently of the XenForo database.At the moment, this isn’t possible because
xf-addon:build-release depends on xf-addon:export, which requires a live database connection to generate the _data directory.This dependency makes it impossible to perform a full release build in environments where a database isn’t available.
Removing XenForo’s current database dependency when building a release would mean developers would be able to automate their workflows, for example:
- Automatically build and package add-ons in CI/CD systems (e.g., GitHub, GitLab) when changes are pushed or a release is tagged.
Proposed solution
There are a couple of approaches, I could think of:
- Keep
_dataautomatically up to date whenever add-on files change, soxf-addon:build-releasecan run without accessing the database. - Allow
xf-addon:exportto operate directly from add-on files and the existing_outputdirectory, rather than requiring a live database, and generate_datafrom that.
Upvote
1