Support Windows in gulpfile.js

This commit is contained in:
Nikolai Vavilov 2016-04-15 23:23:33 +02:00
parent 814685ca2c
commit 7ff229fa4e
2 changed files with 6 additions and 2 deletions

View file

@ -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) {

View file

@ -13,7 +13,7 @@
"glob": "~6.0.4"
},
"scripts": {
"test": "./node_modules/gulp/bin/gulp.js test"
"test": "node ./node_modules/gulp/bin/gulp.js test"
},
"repository": {
"type": "git",