Read project version from composer.json #16

Open
Moiety wants to merge 1 commit from moiety/version-number into develop
Collaborator

This reads the version number from composer.json. This enables any cached css files to automatically to be discarded on release of a new version.

My PHP knowledge is a tad limited, if there’s a better place to put the variable calculation let me know; happy to move it.

This reads the version number from `composer.json`. This enables any cached css files to automatically to be discarded on release of a new version. My PHP knowledge is a tad limited, if there’s a better place to put the variable calculation let me know; happy to move it.
this enables any cached css files to automatically to be discarded on release of a new version.

Signed-off-by: Zoë <code@moiety.me>
Moiety force-pushed moiety/version-number from 323027896c to 60ff517358 2025-05-02 00:16:09 +02:00 Compare
Collaborator

I honestly don't know what the best practice is for this scenario, so this works for me.

If we need to change it later, we will.

I honestly don't know what the best practice is for this scenario, so this works for me. If we need to change it later, we will.
Moiety changed title from WIP: Read project version from composer.json to Read project version from composer.json 2025-05-05 22:34:44 +02:00
Moiety force-pushed moiety/version-number from 60ff517358 to b061aebae5 2025-05-05 22:40:52 +02:00 Compare
Moiety force-pushed moiety/version-number from b061aebae5 to 0e5b786f58 2025-05-05 22:47:16 +02:00 Compare
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
projects/thebadspace!16
No description provided.