feat: add proto-extract script

This commit is contained in:
Adhiraj Singh
2022-09-24 17:36:04 +05:30
parent 6735263696
commit 6c90241142
5 changed files with 750 additions and 0 deletions

8
proto-extract/README.md Normal file
View File

@@ -0,0 +1,8 @@
# Proto Extract
Derived initially from `whatseow`'s proto extract, this version generates a predictable diff friendly protobuf. It also does not rely on a hardcoded set of modules to look for but finds all proto modules on its own and extracts the proto from there.
## Usage
1. Install dependencies with `yarn` (or `npm install`)
2. `yarn start`
3. The script will update `../WAProto/WAProto.proto` (except if something is broken)