Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dcl/protocol) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Protocol definitions
This module is intended to be installed as a node_module via npm install @dcl/protocol.
It is recommended that every project compiles the needed files only as part of its build process. Some imports are required:
-I=$(pwd)/node_modules/@dcl/protocol/public-I=$(pwd)/node_modules/@dcl/protocol/proto
An example compilation looks like this:
protoc \
--plugin=./node_modules/.bin/protoc-gen-ts_proto \
--ts_proto_opt=esModuleInterop=true,returnObservable=false,outputServices=generic-definitions,fileSuffix=.gen \
--ts_proto_out="$(pwd)/out-ts" \
-I="$(pwd)/node_modules/@dcl/protocol/public" \
-I="$(pwd)/node_modules/@dcl/protocol/proto" \
"$(pwd)/node_modules/@dcl/protocol/public/bff-services.proto"Style Guidelines
- All .proto files are snake_case.proto.
- For pascal or camel case usage, please make a deterministic one from the snake case. Example: nft_shape will transform to NftShape.
- See https://docs.buf.build/best-practices/style-guide. The most of other styles are taken from there, the Buf configuration is in proto/buf.yml.
- Use public/ folder only for .proto with protocol exposing, that is only for files with
import public. This folder is not processed by the linter.