-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 215c00c
Showing
62 changed files
with
23,217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Libra Core | ||
|
||
Libra Core is a javascript library client that can be used to interact to the libra nodes. | ||
|
||
> This is still under heavy development and testing, so not ready yet | ||
## Installation | ||
To install with npm run: | ||
|
||
``` | ||
npm install libra-core | ||
``` | ||
|
||
## Contribution | ||
Feel free to contribute by opening issues or PR's to this repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
PROTO_IMPORT_DIR="./proto/" | ||
GEN_OUT_DIR="./lib/__generated__" | ||
|
||
# Create the generated output dir if it doesn't exist | ||
if [ ! -d "$GEN_OUT_DIR" ]; then | ||
mkdir -p ${GEN_OUT_DIR} | ||
fi | ||
|
||
FILE_PATHS='./proto/*.proto' | ||
|
||
# Generate JavaScript | ||
grpc_tools_node_protoc \ | ||
--js_out=import_style=commonjs,binary:${GEN_OUT_DIR} \ | ||
--grpc_out=${GEN_OUT_DIR} \ | ||
--plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` \ | ||
-I ${PROTO_IMPORT_DIR} \ | ||
${FILE_PATHS} | ||
|
||
# Generate TypeScript definitions | ||
grpc_tools_node_protoc \ | ||
--plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \ | ||
--ts_out=${GEN_OUT_DIR} \ | ||
-I ${PROTO_IMPORT_DIR} \ | ||
${FILE_PATHS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
roots: ['<rootDir>/test'], | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest' | ||
}, | ||
testRegex: '/test(/(integration|unit))?/.*\\.test\\.ts$', | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.