Skip to content

v0.5.0-alpha

Pre-release
Pre-release

Choose a tag to compare

@bcordis bcordis released this 09 May 20:56
· 26 commits to main since this release
v0.5.0-alpha
0c6d07f

First minor bump on the alpha line. Consolidates the per-consumer build / package scripts (Proclaim's proclaim_build.php, lib_cwmscripture's build-package.php, CWMScriptureLinks' build-package.php) into two generic binaries — cwm-build and cwm-package — driven by new build: and package: blocks in cwm-build.config.json.

Headline changes

  • cwm-build (new) — config-driven extension zip builder; loose / strict exclude modes, vendor pruning, include-roots filter, ensure-minified gate, run-mode pre-build, optional 3-way version prompt
  • cwm-package (rewritten) — multi-extension package assembler with four includes[] entry types (self / subBuild / prebuilt / inline), two innerLayouts, opt-in self-verify
  • Build\Prompt — extracted ask() helper with the countdown + ANSI redraw fix from Proclaim (#5)
  • cwm-article — generic CWM release announcement poster (#7)
  • cwm-joomla-cms-deps — generic joomla-cms test source cloner (#7)
  • build-assets.js template — config-driven asset copier (#7)
  • cwm-release pre-flightgit pull --ff-only + submodule sync + warn on untagged submodule pointers (#6)

Important — schema is additive but cwm-package's behavior changed

bin/cwm-package was a thin bash -c \$build.command wrapper in 0.4.x; in 0.5.0-alpha it's a config-driven assembler reading a package: block. Any consumer that had cwm-package wired to invoke their old build script needs to either switch the wired script back to build.command directly, OR add a package: block to their cwm-build.config.json.

Consumers pinned to ^0.4@alpha correctly do NOT auto-pick this up. Bump your constraint to ^0.5@alpha and follow the migration guide in CHANGELOG.md before bumping.

Test suite

Metric v0.4.1-alpha v0.5.0-alpha
Tests 40 91
Assertions 100 310

Closed issues

  • #5 — Move proclaim_build.php / build-package.php into build-tools as config-driven cwm-build + cwm-package binaries
  • #6cwm-release: add pre-flight git pull + submodule update before bumping
  • #7 — Move cwm-article.sh, joomla-cms-deps.php, and parameterize build-assets.js into build-tools

What's deferred

  • Per-consumer migrations (Proclaim, lib_cwmscripture, CWMScriptureLinks) land as separate PRs in those repos that switch build.command and package.command to the new binaries and delete the legacy build scripts. They unlock fully on composer update once consumers bump to ^0.5@alpha.

See the full release notes and migration guide in CHANGELOG.md.