Use grunt option with grunt.util.spawn, close gh-1255.

This commit is contained in:
Kyle Robinson Young 2013-04-24 11:56:38 -07:00 committed by Dave Methvin
parent 9fdbc8bf33
commit b5580a9898
2 changed files with 2 additions and 1 deletions

View File

@ -168,3 +168,4 @@ Steven Benner <admin@stevenbenner.com>
Li Xudong <istonelee@gmail.com> Li Xudong <istonelee@gmail.com>
Renato Oliveira dos Santos <ros3@cin.ufpe.br> Renato Oliveira dos Santos <ros3@cin.ufpe.br>
Jason Bedard <jason+jquery@jbedard.ca> Jason Bedard <jason+jquery@jbedard.ca>
Kyle Robinson Young <kyle@dontkry.com>

View File

@ -260,7 +260,7 @@ module.exports = function( grunt ) {
grunt.log.writeln( "Creating custom build...\n" ); grunt.log.writeln( "Creating custom build...\n" );
grunt.util.spawn({ grunt.util.spawn({
cmd: process.platform === "win32" ? "grunt.cmd" : "grunt", grunt: true,
args: [ "build:*:*:" + modules, "pre-uglify", "uglify", "dist" ] args: [ "build:*:*:" + modules, "pre-uglify", "uglify", "dist" ]
}, function( err, result ) { }, function( err, result ) {
if ( err ) { if ( err ) {