@thegetty/quire-cli 1.0.0-rc.42 → 1.0.0-rc.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thegetty/quire-cli",
3
3
  "description": "Quire command-line interface",
4
- "version": "1.0.0-rc.42",
4
+ "version": "1.0.0-rc.43",
5
5
  "author": "Getty Digital",
6
6
  "license": "SEE LICENSE IN https://github.com/thegetty/quire/blob/main/LICENSE",
7
7
  "bugs": {
@@ -174,12 +174,15 @@ class Quire11ty {
174
174
 
175
175
  configureEleventyEnv({ mode: 'production', debug: options.debug })
176
176
 
177
- reporter.start('Building site...', { showElapsed: true })
178
-
179
177
  const eleventy = await createEleventyInstance(options)
180
178
 
181
179
  eleventy.setDryRun(options.dryRun)
182
180
 
181
+ // Print a static info line before Eleventy's build output begins.
182
+ // A spinner is not used here because write() writes directly to stdout
183
+ // and would overwrite the spinner line.
184
+ reporter.info('Building site...')
185
+
183
186
  try {
184
187
  await eleventy.write()
185
188
  reporter.succeed('Build complete')
@@ -204,17 +207,29 @@ class Quire11ty {
204
207
 
205
208
  configureEleventyEnv({ mode: 'development', debug: options.debug })
206
209
 
207
- reporter.start('Starting development server...')
208
-
209
210
  const eleventy =
210
211
  await createEleventyInstance({ ...options, runMode: 'serve' })
211
212
 
212
213
  // Store reference for lifecycle management (graceful shutdown)
213
214
  this.activeInstance = eleventy
214
215
 
215
- // Initialize Eleventy before serving (required for eleventyServe)
216
+ // Initialize Eleventy (required before watch/serve)
216
217
  await eleventy.init()
217
218
 
219
+ // Print a static info line before Eleventy's build output begins.
220
+ // A spinner is not used here because watch() writes directly to stdout
221
+ // and would overwrite the spinner line.
222
+ reporter.info('Building site...')
223
+
224
+ // Build the site and start file watchers.
225
+ // watch() performs the initial build via write(), then sets up chokidar
226
+ // file watchers for incremental rebuilds on file changes.
227
+ // This matches the Eleventy CLI sequence: init() → watch() → serve()
228
+ // @see https://github.com/11ty/eleventy/blob/main/cmd.cjs
229
+ await eleventy.watch()
230
+
231
+ reporter.start('Starting development server...')
232
+
218
233
  // Register a ready callback to resolve the spinner when the server is listening
219
234
  // @see https://www.11ty.dev/docs/dev-server/#options
220
235
  eleventy.eleventyServe.config.serverOptions = {
@@ -228,6 +243,7 @@ class Quire11ty {
228
243
  },
229
244
  }
230
245
 
246
+ // Start the HTTP dev server (serves the built _site/ directory)
231
247
  await eleventy.serve(options.port)
232
248
  }
233
249
  }