-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update protocolbuffers, grpc and bufbuild/es (#1620)
- Loading branch information
1 parent
a5249c9
commit 43f031b
Showing
102 changed files
with
1,516 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!Dockerfile | ||
!package*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# syntax=docker/dockerfile:1.12 | ||
FROM node:22.12.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:d2bf966afe785153974fdd2663c7181dbfdf407d229b5df4adef185ca134da04 AS node | ||
|
||
FROM gcr.io/distroless/cc-debian12:latest@sha256:f913198471738d9eedcd00c0ca812bf663e8959eebff3a3cbadb027ed9da0c38 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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.3 | ||
source_url: https://github.com/bufbuild/protobuf-es | ||
integration_guide_url: https://github.com/bufbuild/protobuf-es#quickstart | ||
description: Types for TypeScript/JavaScript for use in web browsers and Node.js. Generates message and enum types, but also services for use with Connect v2. | ||
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.3 | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/protobuf-es/blob/v2.2.3/LICENSE |
Oops, something went wrong.