clt-jwat-common
TypeScript icon, indicating that this package has built-in type declarations

1.1.42 • Public • Published

Installation

$ npm install

Generate code from .protofile

disable any flag if needed

change {{name}} with your proto file's name

change directory into protos folder and run this command to generate ts file

$ cd common/protos
## Window
$ protoc --plugin=protoc-gen-ts_proto=..\..\node_modules\.bin\protoc-gen-ts_proto.cmd --ts_proto_out=../entities --ts_proto_opt=nestJs=true --ts_proto_opt=useDate=true {{name}}.proto
## Mac
$ protoc --plugin=../../node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=../entities --ts_proto_opt=nestJs=true --ts_proto_opt=useDate=true {{name}}.proto

after that, remove that line: export const protobufPackage = "....";

and export your entity in index.ts (in root folder)

Before publish new version

$ tsc -b

update version in package.json

push this change to remote

Publish new version

$ npm publish

Package Sidebar

Install

npm i clt-jwat-common

Weekly Downloads

417

Version

1.1.42

License

ISC

Unpacked Size

66.8 kB

Total Files

52

Last publish

Collaborators

  • tan_gnuh021223
  • vuongtanphat139
  • huynhluat2002
  • trankhaihoang
  • tnguyen10
  • kimbapquyenduy
  • thtt1502
  • nqduy65
  • khanhmtn00
  • kbut123
  • xuanclv
  • h.sydai