-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use gRPC for execution * Remove socket connection * Migrate to pure gprc js * Update protobuf library Signed-off-by: BugDiver <vinaysh@thoughtworks.com>
- Loading branch information
BugDiver
committed
Sep 24, 2020
1 parent
6f84150
commit 6fa1c56
Showing
97 changed files
with
35,878 additions
and
47,882 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 |
---|---|---|
|
@@ -9,4 +9,5 @@ gauge-proto | |
package.json | ||
package-lock.json | ||
.eslintrc.js | ||
src/gen | ||
src/gen | ||
config.ts |
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
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
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
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
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 @@ | ||
import 'jest-ts-auto-mock'; |
Submodule gauge-proto
updated
23 files
+0 −16 | .github/workflows/build.yml | |
+0 −28 | .github/workflows/deploy.yml | |
+32 −0 | .github/workflows/release.yml | |
+4 −1 | .gitignore | |
+2 −2 | CONTRIBUTING.md | |
+0 −674 | COPYING | |
+201 −0 | LICENSE | |
+1 −2 | README.md | |
+5 −19 | api.proto | |
+0 −97 | build.gradle | |
+1,227 −795 | doc/gauge-proto-doc.md | |
+0 −13 | gauge-proto.iml | |
+8 −0 | gen_doc.sh | |
+ − | gradle/wrapper/gradle-wrapper.jar | |
+0 −5 | gradle/wrapper/gradle-wrapper.properties | |
+0 −172 | gradlew | |
+0 −84 | gradlew.bat | |
+211 −0 | java/pom.xml | |
+5 −16 | lsp.proto | |
+7 −17 | messages.proto | |
+6 −0 | release.sh | |
+6 −0 | services.proto | |
+7 −15 | spec.proto |
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 |
---|---|---|
@@ -1,6 +1,25 @@ | ||
cd gauge-proto | ||
pbjs -t static-module -w commonjs -o ../src/gen/messages.js *.proto | ||
pbts -o ../src/gen/messages.d.ts ../src/gen/messages.js | ||
cp *.proto ../src/gen | ||
rm ../src/gen/api.proto | ||
cd .. | ||
export PATH=$PATH:"./node_modules/.bin" | ||
|
||
OUTPUT_DIR="src/gen" | ||
PROTO_DIR="gauge-proto" | ||
|
||
rm -rf $OUTPUT_DIR | ||
mkdir $OUTPUT_DIR | ||
|
||
grpc_tools_node_protoc \ | ||
-I $PROTO_DIR \ | ||
--js_out=import_style=commonjs,binary:$OUTPUT_DIR \ | ||
./$PROTO_DIR/messages.proto ./$PROTO_DIR/spec.proto | ||
|
||
grpc_tools_node_protoc \ | ||
-I $PROTO_DIR \ | ||
--js_out=import_style=commonjs,binary:$OUTPUT_DIR \ | ||
--grpc_out=grpc_js:$OUTPUT_DIR \ | ||
./$PROTO_DIR/services.proto | ||
|
||
grpc_tools_node_protoc \ | ||
--plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \ | ||
--ts_out=generate_package_definition:$OUTPUT_DIR \ | ||
-I $PROTO_DIR \ | ||
./$PROTO_DIR/spec.proto ./$PROTO_DIR/messages.proto ./$PROTO_DIR/services.proto | ||
|
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
module.exports = { | ||
transform: { '^.+\\.ts?$': 'ts-jest' }, | ||
testEnvironment: 'node', | ||
testRegex: '/tests/.*(Test)?\\.(ts)$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
coveragePathIgnorePatterns: [ | ||
"/node_modules/", | ||
"src/gen/*", | ||
"src/utils/*" | ||
] | ||
transform: { '^.+\\.ts?$': 'ts-jest' }, | ||
testEnvironment: 'node', | ||
globals: { | ||
"ts-jest": { | ||
"compiler": "ttypescript" | ||
} | ||
}, | ||
testRegex: '/tests/.*(Test)?\\.(ts)$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
coveragePathIgnorePatterns: [ | ||
"/node_modules/", | ||
"src/gen/*", | ||
"src/utils/*" | ||
], | ||
setupFiles: [ | ||
"<rootDir>config.ts" | ||
] | ||
}; |
Oops, something went wrong.