-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
Thanks @mcdado this seems sensible. I'll take a closer look this weekend. |
FWIW: this only bugs me because I try to do |
That's interesting since the progress bar is already using npmlog On 7 Nov 2016 3:19 AM, "David Gasperoni" [email protected] wrote:
|
Sure, here you go: link to video |
In deployment I have this command to build Sass in DeployBot: Note that I even redirect But in DeployBot's logs I still get all these lines:
|
Interesting, looks like a bug with how either we or npm handles |
@@ -48,7 +48,7 @@ function download(url, dest, cb) { | |||
return response.statusCode >= 200 && response.statusCode < 300; | |||
}; | |||
|
|||
console.log('Start downloading binary at', url); | |||
log.http('Start downloading binary at', url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense, but the messages need to be updated since the first parameter to the function in npmlog is the prefix
rather than just contating the series of objects
EX:
log.http('install.js', 'Start downloading binary at ' + url)
I hope it's okay that I used |
@@ -48,7 +48,7 @@ function download(url, dest, cb) { | |||
return response.statusCode >= 200 && response.statusCode < 300; | |||
}; | |||
|
|||
console.log('Start downloading binary at', url); | |||
log.http('node-sass install', 'Start downloading binary at', url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The , url
doesn't work the same way as it did with console
, so it either needs a temaplate in the message string or just switch it to + url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, that slipped when I replaced the parameters! I'll change it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 182ff9d
Change console.log to npmlog
In for a penny in for a pound. I also noticed that #1786 resulted in some funky looking console output. I've taken this opportunity to tidy up our install script output whilst maintaining the information useful for debugging install issues. ``` > [email protected] install /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/install.js http node-sass install Downloading binary from https://github.com/sass/node-sass/releases/download/v3.11.3/darwin-x64-47_binding.node http node-sass install Download complete info node-sass install Binary saved at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node > [email protected] postinstall /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/build.js info node-sass build Binary found at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node info node-sass build Testing binary info node-sass build Binary is fine; exiting. ```
In for a penny in for a pound. I also noticed that #1786 resulted in some funky looking console output. I've taken this opportunity to tidy up our install script output whilst maintaining the information useful for debugging install issues. ``` > [email protected] install /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/install.js http node-sass install Downloading binary from https://github.com/sass/node-sass/releases/download/v3.11.3/darwin-x64-47_binding.node http node-sass install Download complete info node-sass install Binary saved at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node > [email protected] postinstall /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/build.js info node-sass build Binary found at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node info node-sass build Testing binary info node-sass build Binary is fine > [email protected] prepublish /Users/xzyfer/Projects/Sass/upstream/node-sass > not-in-install && node scripts/prepublish.js || in-install ```
In for a penny in for a pound. I also noticed that #1786 resulted in some funky looking console output. I've taken this opportunity to tidy up our install script output whilst maintaining the information useful for debugging install issues. ``` > [email protected] install /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/install.js http node-sass install Downloading binary from https://github.com/sass/node-sass/releases/download/v3.11.3/darwin-x64-47_binding.node http node-sass install Download complete info node-sass install Binary saved at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node > [email protected] postinstall /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/build.js info node-sass build Binary found at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node info node-sass build Testing binary info node-sass build Binary is fine > [email protected] prepublish /Users/xzyfer/Projects/Sass/upstream/node-sass > not-in-install && node scripts/prepublish.js || in-install ```
In for a penny in for a pound. I also noticed that #1786 resulted in some funky looking console output. I've taken this opportunity to tidy up our install script output whilst maintaining the information useful for debugging install issues. ``` > [email protected] install /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/install.js http node-sass install Downloading binary from https://github.com/sass/node-sass/releases/download/v3.11.3/darwin-x64-47_binding.node http node-sass install Download complete info node-sass install Binary saved at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node > [email protected] postinstall /Users/xzyfer/Projects/Sass/upstream/node-sass > node scripts/build.js info node-sass build Binary found at /Users/xzyfer/Projects/Sass/upstream/node-sass/vendor/darwin-x64-47/binding.node info node-sass build Testing binary info node-sass build Binary is fine > [email protected] prepublish /Users/xzyfer/Projects/Sass/upstream/node-sass > not-in-install && node scripts/prepublish.js || in-install ```
npmlog has the advantage of using the same log level configuration of npm.
Running
npm install gulp-sass --no-progress --silent
I found out that this package is particularly noisy.