Skip to content

Conversation

@mphstudios
Copy link
Contributor

@mphstudios mphstudios commented Jan 26, 2026

Adds a simple node server for the static publication output.

Nota bene: this server is documented as not for production

Purpose

The quire preview command runs the eleventy development server, which watches for file changes and uses vite features for hot-module reload. This does not mimic serving the final static publication content.

To meet the need of pre-deploy verification of the static build output this pull-request introduces a quire serve command and a simple server based on node:http and without any dependencies. Limitations of this simple server implementation are documented in the README.

- Add --verbose option for consistency with other commands
- Use reporter.configure() to respect quiet/verbose options
- Use reporter.start/succeed/fail for build phase when --build flag used
- Replace logger with reporter.info() in lib/server for status messages
- Add reporter.detail() for verbose mode root directory display
- Update help text with Output Modes section
- Update tests to include reporter mocks and verbose option
The --serve option will start the static server on the default port.
The --open option will start the server and open the browser.
@mphstudios mphstudios marked this pull request as ready for review January 26, 2026 23:43
Resolve build.js import conflict: keep both open (serve branch) and
recordStatus (main) imports.

Remove stale reporter.succeed assertion from serve test — main moved
reporter lifecycle management to the lib layer.
Pick up temp/quire-test-project removal from main.
@mphstudios mphstudios force-pushed the feature/quire-serve-command branch from efb9114 to 44d82c3 Compare January 29, 2026 01:40
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.

2 participants