aboutsummaryrefslogtreecommitdiff
path: root/js/gulpfile.js
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2016-04-11 23:37:42 -0700
committerJoshua Haberman <jhaberman@gmail.com>2016-04-11 23:37:42 -0700
commit814685ca2cd9280ca401e1842fd6311440921a0a (patch)
tree5c2cac2b5ba07fe345fdda74c270b32c8f7b9331 /js/gulpfile.js
parent3ffbdd712f0413ce4964d626c5e10533f1f74893 (diff)
parent3c4ce528c63f4dc39d15de963020472980ee7229 (diff)
downloadprotobuf-814685ca2cd9280ca401e1842fd6311440921a0a.tar.gz
protobuf-814685ca2cd9280ca401e1842fd6311440921a0a.tar.bz2
protobuf-814685ca2cd9280ca401e1842fd6311440921a0a.zip
Merge pull request #1397 from google/internal-merge
Internal merge
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r--js/gulpfile.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js
index 36fd9fda..7e44aa76 100644
--- a/js/gulpfile.js
+++ b/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.
// Will require proper externs/exports.
var cmd = "mkdir -p commonjs_out/binary && mkdir -p commonjs_out/test_node_modules && ";