-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add connect-es/web v0.8.2 and prost-serde v0.2.3 (#403)
- Loading branch information
1 parent
6a08bf9
commit 384f1e7
Showing
19 changed files
with
304 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,3 @@ | ||
* | ||
!Dockerfile | ||
!package*.json |
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,11 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM node:18.14.2-alpine3.17 AS build | ||
WORKDIR /app | ||
COPY --link package*.json . | ||
RUN npm ci | ||
RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/@bufbuild/protoc-gen-connect-es/bin/protoc-gen-connect-es | ||
|
||
FROM gcr.io/distroless/nodejs18-debian11 | ||
COPY --link --from=build /app /app | ||
USER nobody | ||
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-connect-es" ] |
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,19 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/connect-es | ||
plugin_version: v0.8.2 | ||
source_url: https://github.com/bufbuild/connect-es | ||
description: Generates code that is compatible with browsers and Node.js for working with Connect, gRPC, and gRPC-Web. | ||
deps: | ||
- plugin: buf.build/bufbuild/es:v1.1.0 | ||
output_languages: | ||
- javascript | ||
- typescript | ||
registry: | ||
npm: | ||
import_style: module | ||
rewrite_import_path_suffix: connect.js | ||
deps: | ||
- package: '@bufbuild/connect' | ||
version: ^0.8.2 | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-es/blob/v0.8.2/LICENSE |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
{ | ||
"name": "plugins-bufbuild-connect-es", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"@bufbuild/protoc-gen-connect-es": "0.8.2" | ||
} | ||
} |
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,3 @@ | ||
* | ||
!Dockerfile | ||
!package*.json |
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,11 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM node:18.14.2-alpine3.17 AS build | ||
WORKDIR /app | ||
COPY --link package*.json . | ||
RUN npm ci | ||
RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/@bufbuild/protoc-gen-connect-web/bin/protoc-gen-connect-web | ||
|
||
FROM gcr.io/distroless/nodejs18-debian11 | ||
COPY --link --from=build /app /app | ||
USER nobody | ||
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-connect-web" ] |
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,19 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/connect-web | ||
plugin_version: v0.8.2 | ||
source_url: https://github.com/bufbuild/connect-web | ||
description: Generates client stubs for calling Connect and gRPC-Web services from a web browser. | ||
deps: | ||
- plugin: buf.build/bufbuild/es:v1.1.0 | ||
output_languages: | ||
- javascript | ||
- typescript | ||
registry: | ||
npm: | ||
import_style: module | ||
rewrite_import_path_suffix: connectweb.js | ||
deps: | ||
- package: '@bufbuild/connect-web' | ||
version: ^0.8.2 | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-web/blob/v0.8.2/LICENSE |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
{ | ||
"name": "plugins-bufbuild-connect-web", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"@bufbuild/protoc-gen-connect-web": "0.8.2" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
plugins/community/neoeinstein-prost-serde/v0.2.3/.dockerignore
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 @@ | ||
* | ||
!Dockerfile |
11 changes: 11 additions & 0 deletions
11
plugins/community/neoeinstein-prost-serde/v0.2.3/Dockerfile
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,11 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM rust:1.67.1-alpine3.17 as builder | ||
RUN apk add --no-cache musl-dev | ||
WORKDIR /app | ||
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/root/target \ | ||
cargo install protoc-gen-prost-serde --version 0.2.3 --locked --root /app | ||
|
||
FROM gcr.io/distroless/static | ||
COPY --from=builder /app/bin/protoc-gen-prost-serde /protoc-gen-prost-serde | ||
USER nobody | ||
ENTRYPOINT ["/protoc-gen-prost-serde"] |
9 changes: 9 additions & 0 deletions
9
plugins/community/neoeinstein-prost-serde/v0.2.3/buf.plugin.yaml
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,9 @@ | ||
version: v1 | ||
name: buf.build/community/neoeinstein-prost-serde | ||
plugin_version: v0.2.3 | ||
source_url: https://crates.io/crates/protoc-gen-prost-serde | ||
description: Generates serde serialization implementations that follow the conventions of protobuf-JSON. | ||
output_languages: | ||
- rust | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/neoeinstein/protoc-gen-prost/blob/2023-03-01/LICENSE |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-es/v0.8.2/eliza/plugin.sum
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 @@ | ||
h1:1SyVtbl1+CHaXU3BnOq1pqf9JrPhent0EVv7UNCgRxM= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-es/v0.8.2/petapis/plugin.sum
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 @@ | ||
h1:4hKnG6qg1N6uhr0VI8h4guLswlq+7KkZZM98L8MeZMQ= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-web/v0.8.2/eliza/plugin.sum
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 @@ | ||
h1:iXRHU98/xAoG32tXi1q/iqpUubzapPRqSQny1tD7RBg= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-web/v0.8.2/petapis/plugin.sum
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 @@ | ||
h1:ndparjPSw9JWjl+TzPekH1aWBES3Ryn7/qBY61wVzbQ= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/neoeinstein-prost-serde/v0.2.3/eliza/plugin.sum
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 @@ | ||
h1:1E1ZifL/GwOUgZCBbouVi2itvO1cyjiaCtTTZf1Wv5k= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/neoeinstein-prost-serde/v0.2.3/petapis/plugin.sum
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 @@ | ||
h1:GTdoOj3luG0jcf4jjV8D6rbCeQ2v0fm9jlZdoBRUvts= |