aboutsummaryrefslogtreecommitdiff
path: root/js/gulpfile.js
diff options
context:
space:
mode:
authorNikolai Vavilov <vvnicholas@gmail.com>2016-04-15 23:23:33 +0200
committerNikolai Vavilov <vvnicholas@gmail.com>2016-04-16 00:30:59 +0300
commit7ff229fa4e7774ee7fa86965fc943c19ace575c3 (patch)
tree3e27c7ff8b6f819fb1a9c320caa12c7cf8bb1987 /js/gulpfile.js
parent814685ca2cd9280ca401e1842fd6311440921a0a (diff)
downloadprotobuf-7ff229fa4e7774ee7fa86965fc943c19ace575c3.tar.gz
protobuf-7ff229fa4e7774ee7fa86965fc943c19ace575c3.tar.bz2
protobuf-7ff229fa4e7774ee7fa86965fc943c19ace575c3.zip
Support Windows in gulpfile.js
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r--js/gulpfile.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js
index 7e44aa76..c5220153 100644
--- a/js/gulpfile.js
+++ b/js/gulpfile.js
@@ -1,7 +1,11 @@
var gulp = require('gulp');
-var exec = require('child_process').exec;
+var execFile = require('child_process').execFile;
var glob = require('glob');
+function exec(command, cb) {
+ execFile('sh', ['-c', command], cb);
+}
+
var protoc = process.env.PROTOC || '../src/protoc';
gulp.task('genproto_closure', function (cb) {