Skip to content

Commit 86f6454

Browse files
Update connect-es, connect-web, and ts-proto plugins (#384)
1 parent f826bdf commit 86f6454

File tree

21 files changed

+501
-0
lines changed

21 files changed

+501
-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.0
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.0.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-web'
17+
version: ^0.8.0
18+
spdx_license_id: Apache-2.0
19+
license_url: https://github.com/bufbuild/connect-es/blob/v0.8.0/LICENSE

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

+97
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.0"
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.0
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.0.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.0
18+
spdx_license_id: Apache-2.0
19+
license_url: https://github.com/bufbuild/connect-web/blob/v0.8.0/LICENSE

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

+97
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.0"
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/ts-proto/protoc-gen-ts_proto
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-ts_proto" ]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: v1
2+
name: buf.build/community/stephenh-ts-proto
3+
plugin_version: v1.140.0
4+
source_url: https://github.com/stephenh/ts-proto
5+
description: An idiomatic protobuf generator for TypeScript.
6+
output_languages:
7+
- typescript
8+
spdx_license_id: Apache-2.0
9+
license_url: https://github.com/stephenh/ts-proto/blob/v1.140.0/LICENSE

0 commit comments

Comments
 (0)