Repository navigation
Regenerate the Composer autoloader on every build and create the matching skeleton - #4
Merged
Merged
Conversation
…hing skeleton A build now runs Composer's dump-autoload in the project before the generator, so a class added after composer install is known to a classmap-authoritative autoloader without a manual dump. Composer takes the optimization settings from the project's composer.json, and the dev flag of installed.json keeps a --no-dev installation without its development autoload rules. build, run, every --watch rebuild, and package's build step use the Composer that new and package locate; a Composer that cannot be provided or fails stops the build before it generates anything. The from-source self-build still runs without Composer. A released SKERNEL now creates super-kernel/skeleton at exactly its own version; one without a version keeps the development line. When Composer fails for a released SKERNEL, the message names that version and says to run skernel self-update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refresh the lock to the components' current commits, which changed only their READMEs. Co-Authored-By: Claude <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
Every build now regenerates the project's Composer autoloader before it generates the build metadata, so a class added after
composer installis found bybuild,run, each--watchrebuild, andpackagewithout a manualcomposer dump-autoload, also when the project's class map is authoritative. The project's own autoloader settings and its installation mode are kept: a--no-devinstallation does not get its development autoload rules back. A released SKERNEL now createssuper-kernel/skeletonat exactly its own version withnew; from source without a version it keeps the development line. Both READMEs follow.Validation
composer validate --strict,composer test(172 tests), andcomposer format:checkpass with the locked packages. On a project created from the released template with--no-dev, a class added after installation was collected bybuild, and a packaged PHAR started.🤖 Generated with Claude Code