Skip to content

Commit

Permalink
Update bufbuild/es, grpc-gateway, and openapiv2 plugins (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Nov 5, 2024
1 parent d4a9276 commit b747f71
Show file tree
Hide file tree
Showing 19 changed files with 1,436 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/bufbuild/es/v2.2.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
21 changes: 21 additions & 0 deletions plugins/bufbuild/es/v2.2.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# syntax=docker/dockerfile:1.10
FROM node:22.11.0-bookworm AS build
WORKDIR /app
COPY --link package*.json .
RUN npm ci \
&& find node_modules/typescript ! -name 'typescript.js' ! -name 'package.json' -type f -exec rm -f {} + \
&& find node_modules/typescript -depth -type d -empty -delete \
&& ./node_modules/.bin/esbuild ./node_modules/.bin/protoc-gen-es --bundle --external:typescript --platform=node --outfile=protoc-gen-es.js

FROM gcr.io/distroless/nodejs22-debian12:latest@sha256:f71f4b7976f952df9c72b4d2ce82e09f0f57d398a25c0c3ebd63557e973f1ee7 AS node

FROM gcr.io/distroless/cc-debian12:latest@sha256:6f05aba4de16e89f8d879bf2a1364de3e41aba04f1dcbba8c75494f6134b4b13 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=node --chmod=0755 /nodejs/bin/node /nodejs/bin/node
COPY --link --from=build --chmod=0755 /app/protoc-gen-es.js /app/protoc-gen-es.js
COPY --link --from=build /app/node_modules/typescript /app/node_modules/typescript
USER nobody
ENTRYPOINT ["/nodejs/bin/node"]
CMD [ "/app/protoc-gen-es.js" ]
20 changes: 20 additions & 0 deletions plugins/bufbuild/es/v2.2.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: v1
name: buf.build/bufbuild/es
plugin_version: v2.2.2
source_url: https://github.com/bufbuild/protobuf-es
integration_guide_url: https://github.com/bufbuild/protobuf-es#quickstart
description: Base types for TypeScript/JavaScript for use in web browsers and Node.js. Generates message and enum types.
output_languages:
- javascript
- typescript
registry:
opts:
- import_extension=js
npm:
import_style: module
rewrite_import_path_suffix: pb.js
deps:
- package: '@bufbuild/protobuf'
version: ^2.2.2
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protobuf-es/blob/v2.2.2/LICENSE
Loading

0 comments on commit b747f71

Please sign in to comment.