diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-11 12:34:52 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-11 12:34:52 +0100 |
commit | 5fa2cd47bbf6163464357fbfcece45087ac0faa2 (patch) | |
tree | 628ec4b8fb80ed760cf211744b77223cbbc8df61 | |
parent | 6f301eab57f888b56bcbe6277a0d584e2aacd508 (diff) | |
download | jquery-ui-5fa2cd47bbf6163464357fbfcece45087ac0faa2.tar.gz jquery-ui-5fa2cd47bbf6163464357fbfcece45087ac0faa2.zip |
Build/grunt: Replace child_process helper with utils.spawn
-rw-r--r-- | grunt.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |