question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Respect gulp --silent?

See original GitHub issue

Hi, would it be possible to have the default quiet option based on the --silent flag of gulp’s cli?

According to this comment the setting can be found by doing:

const argv = require('minimist')(process.argv.slice(2));
const isSilent = !!argv.silent;

then the change could be as simple as replacing

opt.quiet = bool(opt, 'quiet', false);

by

opt.quiet = bool(opt, 'quiet', isSilent);

If that sounds reasonable I’ll add some tests, try it out and submit a pull request when I have time.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
davidshepherd7commented, Sep 19, 2016

Sorry I forgot to “try it out on Monday” for so long!

It doesn’t seem to automatically be silent if --silent is passed to the top level gulp, but passing quiet: true in the options for the call to inject does silence it (gulp-inject 4.1.0, gulp 3.9.0).

1reaction
ghostcommented, Sep 19, 2016

This pull request would suggest that the functionality is already there, but neither calling gulp with --silent nor setting "options.quiet": true disabled the output from gulp-inject for me.

I am using gulp-inject 4.2.0 and gulp 3.9.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add --silence option · Issue #499 · gulpjs/gulp - GitHub
I'm writing some TDD code to test (my understanding of) gulp.js. For that, I need gulp ... Respect gulp --silent? klei/gulp-inject#152.
Read more >
gulp-imagemin doesn't respect series() - Stack Overflow
To know that gulp-imagemin is responsible as I have removed the silent flag and get output from gulp-imagemin just before the process quits....
Read more >
gulp man | Linux Command Library
gulp linux command man page: gulp. ... gulp. TLDR. Run the default task. $ gulp. copy. Run individual tasks ... --silent will disable...
Read more >
gulp-resource-hints - npm
Start using gulp-resource-hints in your project by running `npm i ... and prepend them with resource hints to their respective <head> .
Read more >
The Sopranos: Tony's First Therapy Session (Part 2) - YouTube
Gangsta Gulp. Gangsta Gulp ... I only want to pay respect to the different TV shows that I was raised on and remember...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found