aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/gulpfile.js
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2016-02-04 10:38:06 -0800
committerGravatar Josh Haberman <jhaberman@gmail.com>2016-02-18 10:30:21 -0800
commit9e60036c1b1db947d29cbaaa668aeae19e7d2068 (patch)
treea4803ea2a242988c543710f4b6979771a59b0f87 /js/gulpfile.js
parente9f31ee3d7cf7c0f370607e54dbea01ba7240a77 (diff)
Moved CommonJS-specific files to commonjs/.
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r--js/gulpfile.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js
index 22f8f3fd..bdc4212b 100644
--- a/js/gulpfile.js
+++ b/js/gulpfile.js
@@ -23,7 +23,7 @@ gulp.task('genproto_commonjs', function (cb) {
gulp.task('dist', function (cb) {
// TODO(haberman): minify this more aggressively.
// Will require proper externs/exports.
- exec('./node_modules/google-closure-library/closure/bin/calcdeps.py -i message.js -i binary/reader.js -i binary/writer.js -i commonjs_export.js -p . -p node_modules/google-closure-library/closure -o compiled --compiler_jar node_modules/google-closure-compiler/compiler.jar > google-protobuf.js',
+ exec('./node_modules/google-closure-library/closure/bin/calcdeps.py -i message.js -i binary/reader.js -i binary/writer.js -i commonjs/export.js -p . -p node_modules/google-closure-library/closure -o compiled --compiler_jar node_modules/google-closure-compiler/compiler.jar > google-protobuf.js',
function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
@@ -32,7 +32,7 @@ gulp.task('dist', function (cb) {
});
gulp.task('commonjs_asserts', function (cb) {
- exec('mkdir -p commonjs_out && ./node_modules/google-closure-library/closure/bin/calcdeps.py -i commonjs_export_asserts.js -p . -p node_modules/google-closure-library/closure -o compiled --compiler_jar node_modules/google-closure-compiler/compiler.jar > commonjs_out/closure_asserts_commonjs.js',
+ exec('mkdir -p commonjs_out && ./node_modules/google-closure-library/closure/bin/calcdeps.py -i commonjs/export_asserts.js -p . -p node_modules/google-closure-library/closure -o compiled --compiler_jar node_modules/google-closure-compiler/compiler.jar > commonjs_out/closure_asserts_commonjs.js',
function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
@@ -45,7 +45,7 @@ gulp.task('make_commonjs_out', ['dist', 'genproto_commonjs', 'commonjs_asserts']
// Will require proper externs/exports.
var cmd = "mkdir -p commonjs_out/binary && ";
function addTestFile(file) {
- cmd += 'nodejs rewrite_tests_for_commonjs.js < ' + file +
+ cmd += 'nodejs commonjs/rewrite_tests_for_commonjs.js < ' + file +
' > commonjs_out/' + file + '&& ';
}
@@ -53,7 +53,7 @@ gulp.task('make_commonjs_out', ['dist', 'genproto_commonjs', 'commonjs_asserts']
glob.sync('binary/*_test.js').forEach(addTestFile);
exec(cmd +
- 'cp jasmine_commonjs.json commonjs_out/jasmine.json && ' +
+ 'cp commonjs/jasmine.json commonjs_out/jasmine.json && ' +
'cp google-protobuf.js commonjs_out',
function (err, stdout, stderr) {
console.log(stdout);