blob: 79095d657b98d105c7595d756d94cb1db437c0a6 [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001var gulp = require('gulp');
2var exec = require('child_process').exec;
3
4gulp.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
13gulp.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
22gulp.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});