Skip to content

Commit 384f1e7

Browse files
Add connect-es/web v0.8.2 and prost-serde v0.2.3 (#403)
1 parent 6a08bf9 commit 384f1e7

File tree

19 files changed

+304
-0
lines changed

19 files changed

+304
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!package*.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# syntax=docker/dockerfile:1.4
2+
FROM node:18.14.2-alpine3.17 AS build
3+
WORKDIR /app
4+
COPY --link package*.json .
5+
RUN npm ci
6+
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
7+
8+
FROM gcr.io/distroless/nodejs18-debian11
9+
COPY --link --from=build /app /app
10+
USER nobody
11+
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-connect-es" ]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: v1
2+
name: buf.build/bufbuild/connect-es
3+
plugin_version: v0.8.2
4+
source_url: https://github.com/bufbuild/connect-es
5+
description: Generates code that is compatible with browsers and Node.js for working with Connect, gRPC, and gRPC-Web.
6+
deps:
7+
- plugin: buf.build/bufbuild/es:v1.1.0
8+
output_languages:
9+
- javascript
10+
- typescript
11+
registry:
12+
npm:
13+
import_style: module
14+
rewrite_import_path_suffix: connect.js
15+
deps:
16+
- package: '@bufbuild/connect'
17+
version: ^0.8.2
18+
spdx_license_id: Apache-2.0
19+
license_url: https://github.com/bufbuild/connect-es/blob/v0.8.2/LICENSE

plugins/bufbuild/connect-es/v0.8.2/package-lock.json

+98
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "plugins-bufbuild-connect-es",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"@bufbuild/protoc-gen-connect-es": "0.8.2"
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!package*.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# syntax=docker/dockerfile:1.4
2+
FROM node:18.14.2-alpine3.17 AS build
3+
WORKDIR /app
4+
COPY --link package*.json .
5+
RUN npm ci
6+
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
7+
8+
FROM gcr.io/distroless/nodejs18-debian11
9+
COPY --link --from=build /app /app
10+
USER nobody
11+
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-connect-web" ]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: v1
2+
name: buf.build/bufbuild/connect-web
3+
plugin_version: v0.8.2
4+
source_url: https://github.com/bufbuild/connect-web
5+
description: Generates client stubs for calling Connect and gRPC-Web services from a web browser.
6+
deps:
7+
- plugin: buf.build/bufbuild/es:v1.1.0
8+
output_languages:
9+
- javascript
10+
- typescript
11+
registry:
12+
npm:
13+
import_style: module
14+
rewrite_import_path_suffix: connectweb.js
15+
deps:
16+
- package: '@bufbuild/connect-web'
17+
version: ^0.8.2
18+
spdx_license_id: Apache-2.0
19+
license_url: https://github.com/bufbuild/connect-web/blob/v0.8.2/LICENSE

plugins/bufbuild/connect-web/v0.8.2/package-lock.json

+98
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "plugins-bufbuild-connect-web",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"@bufbuild/protoc-gen-connect-web": "0.8.2"
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# syntax=docker/dockerfile:1.4
2+
FROM rust:1.67.1-alpine3.17 as builder
3+
RUN apk add --no-cache musl-dev
4+
WORKDIR /app
5+
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/root/target \
6+
cargo install protoc-gen-prost-serde --version 0.2.3 --locked --root /app
7+
8+
FROM gcr.io/distroless/static
9+
COPY --from=builder /app/bin/protoc-gen-prost-serde /protoc-gen-prost-serde
10+
USER nobody
11+
ENTRYPOINT ["/protoc-gen-prost-serde"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: v1
2+
name: buf.build/community/neoeinstein-prost-serde
3+
plugin_version: v0.2.3
4+
source_url: https://crates.io/crates/protoc-gen-prost-serde
5+
description: Generates serde serialization implementations that follow the conventions of protobuf-JSON.
6+
output_languages:
7+
- rust
8+
spdx_license_id: Apache-2.0
9+
license_url: https://github.com/neoeinstein/protoc-gen-prost/blob/2023-03-01/LICENSE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:1SyVtbl1+CHaXU3BnOq1pqf9JrPhent0EVv7UNCgRxM=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:4hKnG6qg1N6uhr0VI8h4guLswlq+7KkZZM98L8MeZMQ=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:iXRHU98/xAoG32tXi1q/iqpUubzapPRqSQny1tD7RBg=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:ndparjPSw9JWjl+TzPekH1aWBES3Ryn7/qBY61wVzbQ=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:1E1ZifL/GwOUgZCBbouVi2itvO1cyjiaCtTTZf1Wv5k=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:GTdoOj3luG0jcf4jjV8D6rbCeQ2v0fm9jlZdoBRUvts=

0 commit comments

Comments
 (0)