chore: migrate to cwm-build-tools v0.5.x#6
Merged
Conversation
Drops the project-side build/build-package.php in favor of the generic cwm-build binary introduced in cwm-build-tools v0.5.0-alpha (issue Joomla-Bible-Study/cwm-build-tools#5). Bumps to v0.5.1-alpha for the ensure-minified gate fix surfaced during this migration. Behavior parity verified end-to-end: Legacy: 89 files, 215 KB cwm-build: 89 files, 215 KB diff -r between unzipped contents: identical (file list AND every file's bytes) Changes: composer.json - cwm/build-tools: ^0.4@alpha -> ^0.5@alpha - "build:package": "php build/build-package.php" -> "cwm-build" - "build:package:verbose": "php build/build-package.php --verbose" -> "cwm-build -v" - dropped "package": "cwm-package" — single-extension lib doesn't need a multi-extension package wrapper, and on v0.5+ that script would fail without a `package:` block cwm-build.config.json - build.command kept as "npm run build && cwm-build" so the release pipeline keeps auto-running npm build, exactly as before - new build.* fields: outputDir, outputName ({version} substituted), manifest, scriptFile, sources[] (src/sql/language/media — same prefixes as legacy), excludes[] (.git/.DS_Store/.idea/node_modules/.php-cs-fixer.cache — same list, contains-mode default), preBuild (mode: ensure-minified, dirs: media/.../js + css — same gate semantics as legacy) build/build-package.php - deleted (190 lines) composer.lock - cwm/build-tools v0.4.0-alpha -> v0.5.1-alpha The release pipeline is unchanged for downstream callers — cwm-release keeps reading build.command. Direct `composer build:package` users get identical zips. No manifest changes required. Refs Joomla-Bible-Study/cwm-build-tools#5 (per-consumer migration). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Drops the project-side
build/build-package.phpin favor of the genericcwm-buildbinary introduced in cwm-build-tools v0.5.0-alpha (issue Joomla-Bible-Study/cwm-build-tools#5). Bumps to v0.5.1-alpha for theensure-minifiedgate fix surfaced during this migration.Behavior parity — verified end-to-end
diff -rqshows zero differences)The unzipped trees are byte-equivalent.
Changes
composer.jsonThe
packagescript is removed because lib_cwmscripture is a single-extension library, not a multi-extension package wrapper — on v0.5+cwm-packagerequires apackage:block in the config and would fail without one.cwm-build.config.jsonbuild.commandkept as"npm run build && cwm-build"so the release pipeline keeps auto-runningnpm run buildexactly as before. Newbuild:schema fields added per the v0.5.0-alpha migration guide:outputDir,outputName({version}substituted)manifest,scriptFilesources[]—src/sql/language/media/lib_cwmscripturewith the same per-source zip prefixes the legacy script usedexcludes[]—.git,.DS_Store,.idea,node_modules,.php-cs-fixer.cache(contains-mode, same as legacy)preBuild—ensure-minifiedmode pointing atmedia/lib_cwmscripture/{js,css}, same gate semantics as legacybuild/build-package.phpDeleted (190 lines).
composer.lockcwm/build-toolsv0.4.0-alpha → v0.5.1-alpha.Why no manifest changes
Schema paths in the new
build:block are source-tree paths that match the legacy script's behavior 1:1. The package's<media>element keeps controlling install-time destination as before — adoptingcwm-buildis a behavior-preserving migration.Test plan
composer build:package— produces identical zip (89 files / 215 KB; full byte-equivalent diff)composer build:package:verbose— works (added-vflag)rm build/build-package.php— build still works (now driven entirely bycwm-buildreading the config)composer release -- 1.1.4end-to-end run on next release (release pipeline readsbuild.commandwhich is unchanged in shape)Related
🤖 Generated with Claude Code