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 # React / TypeScript
ts/**/*.js ts/**/*.js
ts/protobuf/*.d.ts

View File

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

View File

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