lbmjs-types
v1.0.0-rc5
Published
JS and TS types relating to Protocol Buffers used by LBM-SDK
Downloads
41
Readme
lbmjs-types
Maintenance
This section is for maintainers of this repo, not users.
requirements
- protoc
// Mac OS X
brew install protobuf
// Linux
PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
Getting started
# Pull external code
git submodule init
git submodule update
# Install dependencies
yarn install
Rebuilding types
# Update git submodule
yarn submodule_update
# Generate .ts files into ./src
yarn codegen
# Build .js/.d.ts files
yarn build
# Prepare publishing
yarn prepare