-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Showing
4 changed files
with
9 additions
and
21 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 |
---|---|---|
@@ -1,15 +1,4 @@ | ||
third-party | ||
test | ||
docs | ||
examples | ||
scripts | ||
.* | ||
.tgz | ||
# ignore everything that is typescript or proto file | ||
src/**/*.ts | ||
src/**/*.proto | ||
# bazel stuff | ||
BUILD.bazel | ||
WORKSPACE | ||
bazel-* | ||
|
||
**/* | ||
!bin/**/*.js | ||
!src/**/*.js | ||
!index.bzl |
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,15 +1,14 @@ | ||
{ | ||
"name": "example", | ||
"scripts": { | ||
"preinstall": "cd ../.. && yarn bazel build :package", | ||
"test": "protoc -I=src --ts_out=src test.proto && tsc && node ./dist/index" | ||
}, | ||
"dependencies": { | ||
"@grpc/grpc-js": "^1.2.12", | ||
"google-protobuf": "^3.15.8" | ||
}, | ||
"devDependencies": { | ||
"protoc-gen-ts": "file:../../bazel-bin/package", | ||
"protoc-gen-ts": "file:../../", | ||
"typescript": "^4.2.4" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "protoc-gen-ts", | ||
"description": "Compile protocol buffers descriptors to Typescript.", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"license": "MIT", | ||
"author": { | ||
"email": "[email protected]", | ||
|
@@ -14,7 +14,7 @@ | |
}, | ||
"scripts": { | ||
"test": "bazel build //test:codegen //test:codegen_experimental //test/conformance:codegen && node ./scripts/sync_generated_protos.js test && bazel test //test/... --test_output=errors", | ||
"release": "bazel run //:package.publish -- --access public --tag latest --registry https://registry.npmjs.org", | ||
"release": "npm publish --access public --tag latest --registry https://registry.npmjs.org", | ||
"codegen": "node ./scripts/sync_compiler_protos.js && bazel build //src:codegen && node ./scripts/sync_generated_protos.js src/compiler && bazel build //src:compiler && node ./scripts/sync_generated_protos.js src/compiler js" | ||
}, | ||
"bin": { | ||
|