Commit 7ff229fa authored by Nikolai Vavilov's avatar Nikolai Vavilov

Support Windows in gulpfile.js

parent 814685ca
var gulp = require('gulp'); var gulp = require('gulp');
var exec = require('child_process').exec; var execFile = require('child_process').execFile;
var glob = require('glob'); var glob = require('glob');
function exec(command, cb) {
execFile('sh', ['-c', command], cb);
}
var protoc = process.env.PROTOC || '../src/protoc'; var protoc = process.env.PROTOC || '../src/protoc';
gulp.task('genproto_closure', function (cb) { gulp.task('genproto_closure', function (cb) {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"glob": "~6.0.4" "glob": "~6.0.4"
}, },
"scripts": { "scripts": {
"test": "./node_modules/gulp/bin/gulp.js test" "test": "node ./node_modules/gulp/bin/gulp.js test"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment