-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
10 changed files
with
202 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/usr/bin/env node | ||
|
||
process.title = 'bower'; | ||
|
||
var path = require('path'); | ||
var tty = require('tty'); | ||
var mout = require('mout'); | ||
var updateNotifier = require('update-notifier'); | ||
var Logger = require('bower-logger'); | ||
|
@@ -21,8 +22,6 @@ var emitter; | |
var notifier; | ||
var levels = Logger.LEVELS; | ||
|
||
process.title = 'bower'; | ||
|
||
options = cli.readOptions({ | ||
version: { type: Boolean, shorthand: 'v' }, | ||
help: { type: Boolean, shorthand: 'h' }, | ||
|
@@ -49,10 +48,6 @@ if (bower.config.silent) { | |
loglevel = levels[bower.config.loglevel] || levels.info; | ||
} | ||
|
||
// Enable interactive if terminal is TTY, | ||
// loglevel is equal or lower then conflict | ||
bower.config.interactive = tty.isatty(1) && loglevel <= levels.conflict; | ||
|
||
// Get the command to execute | ||
while (options.argv.remain.length) { | ||
command = options.argv.remain.join(' '); | ||
|
@@ -119,6 +114,12 @@ emitter | |
if (levels[log.level] >= loglevel) { | ||
renderer.log(log); | ||
This comment has been minimized.
Sorry, something went wrong.
fella-72
|
||
} | ||
}) | ||
.on('prompt', function (prompt, callback) { | ||
renderer.prompt(prompt) | ||
.then(function (answer) { | ||
callback(answer); | ||
}); | ||
}); | ||
|
||
// Check for newer version of Bower | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Updates installed packages to their newest version according to bower.jsonLeave a line note