Support Windows in gulpfile.js
diff --git a/js/gulpfile.js b/js/gulpfile.js index 7e44aa7..c522015 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) {