Commit fea6904d authored by Timmy Willison's avatar Timmy Willison

Edit bower install script based on comments. Close gh-1392.

parent 4d818ab1
var installer, var which = require( "which" ),
which = require( "which" ),
spawn = require( "child_process" ).spawn; spawn = require( "child_process" ).spawn;
try { try {
...@@ -8,16 +7,7 @@ try { ...@@ -8,16 +7,7 @@ try {
console.error( "Bower must be installed to build jQuery." ); console.error( "Bower must be installed to build jQuery." );
console.error( "Please install Bower by running the following command:" ); console.error( "Please install Bower by running the following command:" );
console.error( "npm install -g bower" ); console.error( "npm install -g bower" );
process.exit( 1 ); process.exit( 0 );
} }
installer = spawn( "bower", [ "install" ] ); spawn( "bower", [ "install" ], { stdio: 'inherit' } );
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 );
});
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
"which": "~1.0.5" "which": "~1.0.5"
}, },
"scripts": { "scripts": {
"install": "bower install", "install": "node build/bower-install",
"test": "grunt" "test": "grunt"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment