Respect gulp --silent?
See original GitHub issueHi, 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:
- Created 8 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 passingquiet: true
in the options for the call to inject does silence it (gulp-inject 4.1.0, gulp 3.9.0).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