Skip to content

Commit

Permalink
Add stephenh-ts-proto v2.2.0 (#1499)
Browse files Browse the repository at this point in the history
Fix #1498
  • Loading branch information
mfridman committed Sep 19, 2024
1 parent 6071d3c commit cd37ef2
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/community/stephenh-ts-proto/v2.2.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
19 changes: 19 additions & 0 deletions plugins/community/stephenh-ts-proto/v2.2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1.10
FROM node:22.9.0-bookworm 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/ts-proto/protoc-gen-ts_proto \
&& rm -f /app/node_modules/dprint-node/*darwin*.node /app/node_modules/dprint-node/*win32*.node

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

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

FROM scratch
COPY --link --from=base / /
COPY --link --from=node --chmod=0755 /nodejs/bin/node /nodejs/bin/node
COPY --link --from=build /app /app
USER nobody
ENTRYPOINT ["/nodejs/bin/node"]
CMD [ "/app/node_modules/.bin/protoc-gen-ts_proto" ]
10 changes: 10 additions & 0 deletions plugins/community/stephenh-ts-proto/v2.2.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
name: buf.build/community/stephenh-ts-proto
plugin_version: v2.2.0
source_url: https://github.com/stephenh/ts-proto
integration_guide_url: https://github.com/stephenh/ts-proto#quickstart
description: An idiomatic protobuf generator for TypeScript.
output_languages:
- typescript
spdx_license_id: Apache-2.0
license_url: https://github.com/stephenh/ts-proto/blob/v2.2.0/LICENSE
87 changes: 87 additions & 0 deletions plugins/community/stephenh-ts-proto/v2.2.0/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/community/stephenh-ts-proto/v2.2.0/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "plugins-stephenh-ts-proto",
"version": "1.0.0",
"dependencies": {
"ts-proto": "2.2.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:pDPHV19msroawGzPS4hs56jVwOxTuBSfl8qP/ttaUOY=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:bAI5j6PzuzAbrSKqwy+lMPmQDD6BDVdh3zwe3GDbZ/Y=

0 comments on commit cd37ef2

Please sign in to comment.