Skip to content

Read project settings only from the configuration file - #5

Merged
wheakerd merged 1 commit into
mainfrom
read-project-settings-from-the-configuration-file
Nov 12, 2026
Merged

wheakerd merged 1 commit into
mainfrom
read-project-settings-from-the-configuration-file

Conversation

@wheakerd

Copy link
Copy Markdown
Member

Summary

Settings that describe the project are now read only from skernel.json or skernel.json.dist, with their defaults when absent, and no longer have command-line options: --php, run --watch, and package's --phar, --dev, --output, --composer, and --runtime are removed. What describes one invocation stays on the command line: the working directory, the directory and Composer of new, and the arguments passed to the application. A top-level composer setting serves build, run, and package and replaces package.composer; run.watch and run.watch-files decide whether and what run watches, and the default watched files now include composer.json. package leaves the configuration files out of the packaged application. The release workflow, the binary check, the schema, and both READMEs follow.

Validation

composer validate --strict, composer test (190 tests), and composer format:check pass. From source with a real Composer: build from skernel.json, a watched run that restarted after a composer.json change, and package writing a PHAR from the configured output. The release workflow and the binary check run on this pull request.

🤖 Generated with Claude Code

A setting that concerns the behavior of the project now comes only from
skernel.json or skernel.json.dist, and a setting the file leaves out takes its
default. The command-line options for those settings are gone: --php on every
command, --watch on run, and --phar, --dev, --output, --composer, and --runtime
on package. Options describe only the invocation: the global --working-dir,
the directory and --composer of new, and the arguments after run --.

The file gains a top-level composer, used by build, run, and package in place
of package.composer, and a run section: watch, false by default, and
watch-files, the name patterns of the watched files, by default *.php, .env,
.env.*, composer.json, and composer.lock. A composer value with a / resolves
against the project root; one without is looked up in PATH. package leaves
the configuration files out of the staged copy. The release workflow and the
binary check write the package path into a skernel.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wheakerd
wheakerd merged commit 03f7946 into main Nov 12, 2026
6 checks passed
@wheakerd
wheakerd deleted the read-project-settings-from-the-configuration-file branch November 12, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant