Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: third_party/protobuf/js/gulpfile.js

Issue 1842653006: Update //third_party/protobuf to version 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/protobuf/js/debug_test.js ('k') | third_party/protobuf/js/jasmine.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 var gulp = require('gulp');
2 var exec = require('child_process').exec;
3
4 gulp.task('genproto', function (cb) {
5 exec('../src/protoc --js_out=library=testproto_libs,binary:. -I ../src -I . *. proto ../src/google/protobuf/descriptor.proto',
6 function (err, stdout, stderr) {
7 console.log(stdout);
8 console.log(stderr);
9 cb(err);
10 });
11 })
12
13 gulp.task('deps', ['genproto'], function (cb) {
14 exec('./node_modules/google-closure-library/closure/bin/build/depswriter.py *. js binary/*.js > deps.js',
15 function (err, stdout, stderr) {
16 console.log(stdout);
17 console.log(stderr);
18 cb(err);
19 });
20 })
21
22 gulp.task('test', ['genproto', 'deps'], function (cb) {
23 exec('JASMINE_CONFIG_PATH=jasmine.json ./node_modules/.bin/jasmine',
24 function (err, stdout, stderr) {
25 console.log(stdout);
26 console.log(stderr);
27 cb(err);
28 });
29 });
OLDNEW
« no previous file with comments | « third_party/protobuf/js/debug_test.js ('k') | third_party/protobuf/js/jasmine.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698