Skip to content

USWDS-Compile - Feature: Flag to stop on errors #62

@patrickcate

Description

@patrickcate

Is your feature request related to a problem? Please describe.

With #5334 I ran into an issue with Sass not compiling. I would have expected the Gulp task to fail, but it didn't.

I run the Sass compilation within a CI/CD process but because the gulp task did not error, it allowed the update to pass.

Is there a way emit an error if the Sass compiling, or other tasks, fail?

Not sure if this is a feature request or just a support/documentation request.

Describe the solution you'd like

A way to catch errors in the Gulp tasks so they can be acted upon.

Describe alternatives you've considered

Writing a custom Gulp Sass compiling task, but that adds a maintenance burden that my client may not be comfortable taking on. It also negates one of the main reasons for using this project for our build process.

Additional context

From what I can tell the buildSass task only emits an end event, not an error.

function handleError(error) {
  log(error.message);
  return this.emit("end");
}

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Affects: CompilingRelated to compiling Sass or JavaScriptType: Feature RequestNew functionalityType: SpikeA short research activity to help make a decision

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions