Compile protocol buffers as part of `yarn grunt dev`

This commit is contained in:
Daniel Gasienica 2018-05-07 14:12:38 -04:00
parent c5d6e4a602
commit f88ebdf8b7
4 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ test/test.js
# React / TypeScript
ts/**/*.js
ts/protobuf/*.d.ts

View File

@ -10,7 +10,8 @@ libtextsecure/components.js
libtextsecure/test/test.js
test/test.js
ts/**/*.js
ts/protobuf/**
ts/protobuf/*.js
ts/protobuf/*.d.ts
# Third-party files
components/**

View File

@ -194,6 +194,10 @@ module.exports = function(grunt) {
files: ['./libtextsecure/*.js', './libtextsecure/storage/*.js'],
tasks: ['concat:libtextsecure'],
},
protobuf: {
files: ['./protos/SignalService.proto'],
tasks: ['exec:build-protobuf'],
},
sass: {
files: ['./stylesheets/*.scss'],
tasks: ['sass'],
@ -218,6 +222,9 @@ module.exports = function(grunt) {
transpile: {
cmd: 'yarn transpile',
},
'build-protobuf': {
cmd: 'yarn build-protobuf',
},
},
'test-release': {
osx: {
@ -503,6 +510,7 @@ module.exports = function(grunt) {
'copy:deps',
'sass',
'date',
'exec:build-protobuf',
'exec:transpile',
]);
};

3
ts/protobuf/README.md Normal file
View File

@ -0,0 +1,3 @@
# Protocol Buffers
Placeholder directory for Protocol Buffers compiled to JavaScript / TypeScript.