Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions bin/ngbp
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ var SPAWN = require( 'child_process' ).spawn;
// 3rd Party Modules
var Q = require( 'q' );
var COLORS = require( 'colors' );
var FINDUP = require('findup-sync');
var RESOLVE = require('resolve').sync;
var FINDUP = require( 'findup-sync' );
var RESOLVE = require( 'resolve' ).sync;
var PREFIX = "[ngbp] ";

// Local libs
var PKG = require( './../package.json' );

function log ( msg ) {
console.log( "[ngbp] " + msg );
console.log( PREFIX + msg );
}

function writeln ( msg ) {
console.log( msg );
}

function error ( msg, fatal ) {
msg = "[ngbp] " + msg;
msg = PREFIX + msg;
console.log( msg.red );

if ( fatal ) {
Expand All @@ -33,7 +34,7 @@ function error ( msg, fatal ) {
}

function header ( msg ) {
msg = "[ngbp] " + msg;
msg = PREFIX + msg;
console.log( msg.underline.magenta );
}

Expand All @@ -59,7 +60,7 @@ function installNgbpIfNeeded () {
// Ensure the user is okay with installing it here.
var rl = READLINE.createInterface({
input: process.stdin,
output: process.stdout
output: process.stdout
});

rl.question( "Install ngbp in the current directory? [Yn] ", function ( answer ) {
Expand Down