Skip to content

Commit d6b6317

Browse files
authored
Add protoc-gen-connect-es (#372)
This adds protoc-gen-connect-es to the plugins repo.
1 parent 433931d commit d6b6317

File tree

7 files changed

+190
-0
lines changed

7 files changed

+190
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!package*.json
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# syntax=docker/dockerfile:1.4
2+
FROM node:18.14.0-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" ]
Lines changed: 19 additions & 0 deletions
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.7.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.7.0
18+
spdx_license_id: Apache-2.0
19+
license_url: https://github.com/bufbuild/connect-es/blob/v0.7.0/LICENSE

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

Lines changed: 148 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
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.7.0"
6+
}
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:d5npf6KthiadfRfeG5cHEdXQ5FWNN8BpCusm7XUCfh4=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:SDhyTVGaIDIOiBuQiTTqTUEeVhHzMKvGmyVL5WBNrEM=

0 commit comments

Comments
 (0)