@fintekkers/ledger-models

0.1.85 • Public • Published

Getting Started - Building

In order to build the protos in Javascript, you must download the web extension. For Mac this is:

brew install protobuf@3 brew link --overwrite protobuf@3

brew install protoc-gen-grpc-web

see more at https://github.com/grpc/grpc-web. Once install the Javascript portion of the compile.sh script at the root of this project should work.

TODO: Are there env variables required?

DEV Notes

The *js files are compiled using tsc. The tsconfig.json is used by VS code to determine when to run (by default on-save). Additionally the *.js.map files are generated to allow for setting debug breakpoints in .ts code. Those files can be not autogenerated by setting sourceMap=False in the tsconfig.json. Probably don't need those files in a production environment.

You can run transpilation via pressing Ctrl+Shift+B to open a list of tasks in VS Code and select tsc: watch - tsconfig.json

Publishing

Please see the .github/workflows/npm-publish.yml for the workflow file that deploys the package to a private GitHub repository manager.

The workflow file creates a .npmrc file within the build step and injects the publish token into it. Currently this is coming from dado0583's account (need to migrate to org secrets). The ephemeral .npmrc file will look like this:

@USERNAME:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=TOKEN

Readme

Keywords

none

Package Sidebar

Install

npm i @fintekkers/ledger-models

Weekly Downloads

6

Version

0.1.85

License

ISC

Unpacked Size

1.26 MB

Total Files

264

Last publish

Collaborators

  • fintekkers