Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Beep number of times? #35

@didoo

Description

@didoo

Why not add an optional parameter (with default=1) to the beep function, so that we can play the "beep" multiple times (to keep attention, ex. when there is an error on watch)?
So instead of:

var onError = function (err) {
    gutil.beep();
    gutil.beep();
    gutil.beep();
    gutil.log(gutil.colors.red("Error: ") + err);
};

one could simply write:

var onError = function (err) {
    gutil.beep(3);
    gutil.log(gutil.colors.red("Error: ") + err);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions