Skip to content

Commit

Permalink
Add new connectrpc/es plugin (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaye81 committed Aug 21, 2023
1 parent 5588ca6 commit 33efd46
Show file tree
Hide file tree
Showing 8 changed files with 143 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/connectrpc/es/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source:
npm_registry:
name: "@connectrpc/protoc-gen-connect-es"
3 changes: 3 additions & 0 deletions plugins/connectrpc/es/v0.13.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
11 changes: 11 additions & 0 deletions plugins/connectrpc/es/v0.13.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM node:18.17.1-alpine3.18 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/@connectrpc/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" ]
19 changes: 19 additions & 0 deletions plugins/connectrpc/es/v0.13.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1
name: buf.build/connectrpc/es
plugin_version: v0.13.1
source_url: https://github.com/connectrpc/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.3.0
output_languages:
- javascript
- typescript
registry:
npm:
import_style: module
rewrite_import_path_suffix: connect.js
deps:
- package: '@connectrpc/connect'
version: ^0.13.1
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-es/blob/v0.13.1/LICENSE
98 changes: 98 additions & 0 deletions plugins/connectrpc/es/v0.13.1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions plugins/connectrpc/es/v0.13.1/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "plugins-connectrpc-es",
"version": "1.0.0",
"dependencies": {
"@connectrpc/protoc-gen-connect-es": "0.13.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:BIBbs4ZohGJQwlY2uqJhxeX+0hPfWfDKtrclZXN5JkQ=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:uTImZGhfUbSxdsMmXhs1agOj/dTpfghOJzjxHxgTi2M=

0 comments on commit 33efd46

Please sign in to comment.