Skip to content

Commit

Permalink
feat: 🎸 grpc support
Browse files Browse the repository at this point in the history
  • Loading branch information
SmilingXinyi committed Jul 7, 2020
1 parent e68f0e3 commit 76827ad
Show file tree
Hide file tree
Showing 17 changed files with 79,665 additions and 1,410 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ A simple JS(TS) SDK for XuperOS
- Pre-Execution
- Endorser check and signature

## Docker镜像

##### 安装 [Repo](https://github.com/SmilingXinyi/xuperchain)

> docker pull smilingxinyi/xuperchain
##### 启动

> docker run -d -p 8098:8098 -p 37101:37101 -p 47101:47101 --name xc smilingxinyi/xuperchain
## Usage

### Install package
Expand Down Expand Up @@ -82,3 +92,5 @@ xsdk.createAccount(
## Todos

- Support xuperchain/xuperunion

grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src/proto/ --grpc_out=./src/proto --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` ./src/proto/xuper.proto
30 changes: 12 additions & 18 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
const conf = {
preset: 'ts-jest',
testPathIgnorePatterns: ['node_modules', 'sdk-1.*']
};

module.exports = {
projects: [
// {
// displayName: 'Browser',
// testEnvironment: './test/jest/custom-test-env.js',
// ...conf
// },
{
displayName: 'browser',
browser: true,
preset: 'ts-jest',
testEnvironment: './test/jest/custom-test-env.js',
testPathIgnorePatterns: ['node_modules', 'sdk-*'],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
moduleFileExtensions: ['ts', 'js']
},
{
displayName: 'node',
preset: 'ts-jest',
displayName: 'Nodejs',
testEnvironment: 'node',
testPathIgnorePatterns: ['node_modules', 'sdk-*'],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
moduleFileExtensions: ['ts', 'js']
...conf
}
]
};
Loading

0 comments on commit 76827ad

Please sign in to comment.