Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Edit bower install script based on comments. Close gh-1392.
  • Loading branch information
timmywil committed Oct 7, 2013
1 parent 4d818ab commit fea6904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
16 changes: 3 additions & 13 deletions build/bower-install.js
@@ -1,5 +1,4 @@
var installer,
which = require( "which" ),
var which = require( "which" ),
spawn = require( "child_process" ).spawn;

try {
Expand All @@ -8,16 +7,7 @@ try {
console.error( "Bower must be installed to build jQuery." );
console.error( "Please install Bower by running the following command:" );
console.error( "npm install -g bower" );
process.exit( 1 );
process.exit( 0 );
}

installer = spawn( "bower", [ "install" ] );
installer.stdout.on( "data", function( data ) {
console.log( data );
});
installer.stderr.on( "data", function( data ) {
console.error( data );
});
installer.on( "close", function( code ) {
process.exit( code );
});
spawn( "bower", [ "install" ], { stdio: 'inherit' } );
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -42,7 +42,7 @@
"which": "~1.0.5"
},
"scripts": {
"install": "bower install",
"install": "node build/bower-install",
"test": "grunt"
}
}

0 comments on commit fea6904

Please sign in to comment.