Kaynağa Gözat

Fix for gulpfile.js.

Josh Haberman 9 yıl önce
ebeveyn
işleme
3c4ce528c6
1 değiştirilmiş dosya ile 10 ekleme ve 1 silme
  1. 10 1
      js/gulpfile.js

+ 10 - 1
js/gulpfile.js

@@ -42,7 +42,16 @@ gulp.task('commonjs_asserts', function (cb) {
   });
   });
 });
 });
 
 
-gulp.task('make_commonjs_out', ['dist', 'genproto_commonjs', 'commonjs_asserts'], function (cb) {
+gulp.task('commonjs_testdeps', function (cb) {
+  exec('mkdir -p commonjs_out/test_node_modules && ./node_modules/google-closure-library/closure/bin/calcdeps.py -i commonjs/export_testdeps.js -p . -p node_modules/google-closure-library/closure -o compiled --compiler_jar node_modules/google-closure-compiler/compiler.jar > commonjs_out/test_node_modules/testdeps_commonjs.js',
+       function (err, stdout, stderr) {
+    console.log(stdout);
+    console.log(stderr);
+    cb(err);
+  });
+});
+
+gulp.task('make_commonjs_out', ['dist', 'genproto_commonjs', 'commonjs_asserts', 'commonjs_testdeps'], function (cb) {
   // TODO(haberman): minify this more aggressively.
   // TODO(haberman): minify this more aggressively.
   // Will require proper externs/exports.
   // Will require proper externs/exports.
   var cmd = "mkdir -p commonjs_out/binary && mkdir -p commonjs_out/test_node_modules && ";
   var cmd = "mkdir -p commonjs_out/binary && mkdir -p commonjs_out/test_node_modules && ";