]> source.dussan.org Git - jquery-ui.git/commitdiff
Build/grunt: Replace child_process helper with utils.spawn
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 11 Mar 2012 11:34:52 +0000 (12:34 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 11 Mar 2012 11:34:52 +0000 (12:34 +0100)
grunt.js

index 585aed8097821a66f75f41c521f2b560f0c0b1af..b7d893cb83a904b0100b3ae23f7149ed4a34c05b 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -325,7 +325,7 @@ task.registerBasicTask('zip', 'Create a zip file for release', function() {
 
   var dest = this.file.dest;
   var src = template.process(this.file.src, config());
-  task.helper("child_process", {
+  utils.spawn({
     cmd: "zip",
     args: ["-r", dest, src],
     opts: {
@@ -418,7 +418,7 @@ task.registerTask('download_themes', function() {
       // var zip = new AdmZip(zipFileName);
       // zip.extractAllTo('dist/tmp/' + index + '/');
       // until then, using cli unzip...
-      task.helper("child_process", {
+      utils.spawn({
         cmd: "unzip",
         args: ["-d", "dist/tmp/" + index, zipFileName]
       }, function(err, result) {
@@ -509,7 +509,7 @@ task.registerBasicTask("compare_size", "Compare size of this branch to master",
   });
 });
 task.registerHelper("git_current_branch", function(done) {
-  task.helper("child_process", {
+  utils.spawn({
     cmd: "git",
     args: ["branch", "--no-color"]
   }, function(err, result) {