Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

create-project: Display lint command output when using --debug #1265

Merged
merged 1 commit into from
Dec 19, 2018
Merged

create-project: Display lint command output when using --debug #1265

merged 1 commit into from
Dec 19, 2018

Conversation

edmorley
Copy link
Member

Previously the stdout/stderr of the "initial lint" step was not shown as expected when --debug had been passed to create-project. Now the full console output is displayed inline, like was already the case for the package install steps.

The yeoman spawnCommandSync() options have also been refactored to reduce duplication, and the error handling adjusted so that:

  • a user friendly message is still shown in the case of result.error
  • the suggestion to use --debug is not shown if it was already passed
  • there is no longer a verbose Neutrino stack trace shown

See:
https://yeoman.github.io/generator/Generator.html#spawnCommandSync
https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options

Fixes #1262.

Previously the stdout/stderr of the "initial lint" step was not shown as
expected when `--debug` had been passed to `create-project`. Now the full
console output is displayed inline, like was already the case for the
package install steps.

The yeoman `spawnCommandSync()` options have also been refactored to
reduce duplication, and the error handling adjusted so that:
- a user friendly message is still shown in the case of `result.error`
- the suggestion to use `--debug` is not shown if it was already passed
- there is no longer a verbose Neutrino stack trace shown

See:
https://yeoman.github.io/generator/Generator.html#spawnCommandSync
https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options

Fixes #1262.
@edmorley edmorley added the bug label Dec 19, 2018
@edmorley edmorley added this to the v9 milestone Dec 19, 2018
@edmorley edmorley self-assigned this Dec 19, 2018
@edmorley edmorley merged commit b0b50a9 into neutrinojs:master Dec 19, 2018
@edmorley edmorley deleted the create-project-lint-command-output branch December 19, 2018 16:49
timkelty pushed a commit to timkelty/neutrino that referenced this pull request Dec 19, 2018
…inojs#1265)

Previously the stdout/stderr of the "initial lint" step was not shown as
expected when `--debug` had been passed to `create-project`. Now the full
console output is displayed inline, like was already the case for the
package install steps.

The yeoman `spawnCommandSync()` options have also been refactored to
reduce duplication, and the error handling adjusted so that:
- a user friendly message is still shown in the case of `result.error`
- the suggestion to use `--debug` is not shown if it was already passed
- there is no longer a verbose Neutrino stack trace shown

See:
https://yeoman.github.io/generator/Generator.html#spawnCommandSync
https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options

Fixes neutrinojs#1262.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants