aboutsummaryrefslogtreecommitdiff
path: root/js/gulpfile.js
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@google.com>2016-11-18 12:32:52 -0800
committerAdam Cozzette <acozzette@google.com>2016-11-21 09:19:22 -0800
commit40f3586412c2efa7a81ccb685e6f96e817996e36 (patch)
tree002d8061ac8eb7082de2991c5e74bae2de43bfe6 /js/gulpfile.js
parent315350b2fa37201851ac298627e5547cfca64798 (diff)
downloadprotobuf-40f3586412c2efa7a81ccb685e6f96e817996e36.tar.gz
protobuf-40f3586412c2efa7a81ccb685e6f96e817996e36.tar.bz2
protobuf-40f3586412c2efa7a81ccb685e6f96e817996e36.zip
Fixed remaining JSPB test failures
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r--js/gulpfile.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js
index cca99131..5f1b1d93 100644
--- a/js/gulpfile.js
+++ b/js/gulpfile.js
@@ -24,7 +24,7 @@ var wellKnownTypes = [
];
gulp.task('genproto_closure', function (cb) {
- exec(protoc + ' --js_out=library=testproto_libs,binary:. -I ../src -I . *.proto ../src/google/protobuf/descriptor.proto',
+ exec(protoc + ' --js_out=library=testproto_libs,binary:. -I ../src -I . *.proto && ' + protoc + ' --js_out=one_output_file_per_input_file,binary:. -I ../src -I . ' + wellKnownTypes.join(' '),
function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
@@ -33,7 +33,7 @@ gulp.task('genproto_closure', function (cb) {
});
gulp.task('genproto_commonjs', function (cb) {
- exec('mkdir -p commonjs_out && ' + protoc + ' --js_out=import_style=commonjs,binary:commonjs_out -I ../src -I commonjs -I . *.proto commonjs/test*/*.proto ../src/google/protobuf/descriptor.proto',
+ exec('mkdir -p commonjs_out && ' + protoc + ' --js_out=import_style=commonjs,binary:commonjs_out -I ../src -I commonjs -I . *.proto commonjs/test*/*.proto ' + wellKnownTypes.join(' '),
function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
@@ -42,7 +42,7 @@ gulp.task('genproto_commonjs', function (cb) {
});
gulp.task('genproto_commonjs_wellknowntypes', function (cb) {
- exec('mkdir -p commonjs_out/node_modules/google-protobuf && ' + protoc + ' --js_out=import_style=commonjs,binary:commonjs_out/node_modules/google-protobuf -I ../src ../src/google/protobuf/descriptor.proto',
+ exec('mkdir -p commonjs_out/node_modules/google-protobuf && ' + protoc + ' --js_out=import_style=commonjs,binary:commonjs_out/node_modules/google-protobuf -I ../src ' + wellKnownTypes.join(' '),
function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);