@cosmonauts/telescope v0.1.1
@cosmonauts/telescope
A TypeScript Transpiler for Comsos Protobufs
$ telescope
? [cmd] what do you want to do? (Use arrow keys or type to search)
❯ generate
transpile
ts-protoGenerally, you will want to run commands in this order:
- generate
- ts-proto
- transpile
generate
Use the generate command to create a new repository with the default proto files.
telescope generate
cd ./your-new-project
yarn ts-proto
Next, run the ts-proto command
telescope ts-protoYou should now seem some .ts files generated in ./out.
transpile
Finally, run the transpile command. This is where we add some ts-proto enhancements and output the final code.
telescope transpileYou should now seem some .ts files generated in ./src. These are the real source files used in your application.
programatic usage
import telescope from '@cosmonauts/telescope';
// specify proto path and out path
telescope(protoPath, outPath);Building with Telescope
You will need the protoc command installed on your machine.
mac
http://google.github.io/proto-lens/installing-protoc.html
brew install protobuf4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago