@cosmonauts/telescope
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@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-proto

Generally, you will want to run commands in this order:

  1. generate
  2. ts-proto
  3. 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-proto

You 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 transpile

You 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 protobuf

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.10
0.1.00
0.0.390
0.0.380
0.0.370
0.0.360
0.0.350
0.0.340
0.0.330
0.0.320
0.0.310
0.0.300
0.0.290
0.0.280
0.0.270
0.0.260
0.0.250
0.0.240
0.0.230
0.0.220
0.0.210
0.0.200
0.0.190
0.0.180
0.0.170
0.0.161
0.0.150
0.0.141
0.0.130
0.0.120
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20

Package Sidebar

Install

npm i @cosmonauts/telescope

Weekly Downloads

2

Version

0.1.1

License

SEE LICENSE IN LICENSE

Unpacked Size

104 kB

Total Files

45

Last publish

Collaborators

  • zetazz
  • ljun
  • pyramation