Compile protocol buffers as part of `yarn grunt dev`
This commit is contained in:
parent
c5d6e4a602
commit
f88ebdf8b7
|
@ -24,3 +24,4 @@ test/test.js
|
||||||
|
|
||||||
# React / TypeScript
|
# React / TypeScript
|
||||||
ts/**/*.js
|
ts/**/*.js
|
||||||
|
ts/protobuf/*.d.ts
|
||||||
|
|
|
@ -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/**
|
||||||
|
|
|
@ -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',
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Protocol Buffers
|
||||||
|
|
||||||
|
Placeholder directory for Protocol Buffers compiled to JavaScript / TypeScript.
|
Loading…
Reference in New Issue