diff --git a/plugins/community/stephenh-ts-proto/v2.2.0/.dockerignore b/plugins/community/stephenh-ts-proto/v2.2.0/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.2.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/community/stephenh-ts-proto/v2.2.0/Dockerfile b/plugins/community/stephenh-ts-proto/v2.2.0/Dockerfile new file mode 100644 index 000000000..ff44b5393 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.2.0/Dockerfile @@ -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" ] diff --git a/plugins/community/stephenh-ts-proto/v2.2.0/buf.plugin.yaml b/plugins/community/stephenh-ts-proto/v2.2.0/buf.plugin.yaml new file mode 100644 index 000000000..50a3b4ea0 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.2.0/buf.plugin.yaml @@ -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 diff --git a/plugins/community/stephenh-ts-proto/v2.2.0/package-lock.json b/plugins/community/stephenh-ts-proto/v2.2.0/package-lock.json new file mode 100644 index 000000000..91abb3cf4 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.2.0/package-lock.json @@ -0,0 +1,87 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "2.2.0" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.1.0.tgz", + "integrity": "sha512-+2Mx67Y3skJ4NCD/qNSdBJNWtu6x6Qr53jeNg+QcwiL6mt0wK+3jwHH2x1p7xaYH6Ve2JKOVn0OxU35WsmqI9A==", + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/case-anything": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.13.tgz", + "integrity": "sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==", + "license": "MIT", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "license": "Apache-2.0", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dprint-node": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/dprint-node/-/dprint-node-1.0.8.tgz", + "integrity": "sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==", + "license": "MIT", + "dependencies": { + "detect-libc": "^1.0.3" + } + }, + "node_modules/ts-poet": { + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.9.0.tgz", + "integrity": "sha512-roe6W6MeZmCjRmppyfOURklO5tQFQ6Sg7swURKkwYJvV7dbGCrK28um5+51iW3twdPRKtwarqFAVMU6G1mvnuQ==", + "license": "Apache-2.0", + "dependencies": { + "dprint-node": "^1.0.8" + } + }, + "node_modules/ts-proto": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.2.0.tgz", + "integrity": "sha512-xzmnyrarUjPnY+Py4RyTh3lYmL9w5t/oTtRTo2rKF8laAAahpGZ/ELxkXFEZns5JVbgkYke3C17HN5iNvZOs4g==", + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.0.0", + "case-anything": "^2.1.13", + "ts-poet": "^6.7.0", + "ts-proto-descriptors": "2.0.0" + }, + "bin": { + "protoc-gen-ts_proto": "protoc-gen-ts_proto" + } + }, + "node_modules/ts-proto-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.0.0.tgz", + "integrity": "sha512-wHcTH3xIv11jxgkX5OyCSFfw27agpInAd6yh89hKG6zqIXnjW9SYqSER2CVQxdPj4czeOhGagNvZBEbJPy7qkw==", + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.0.0" + } + } + } +} diff --git a/plugins/community/stephenh-ts-proto/v2.2.0/package.json b/plugins/community/stephenh-ts-proto/v2.2.0/package.json new file mode 100644 index 000000000..f82672017 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.2.0/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "2.2.0" + } +} diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v2.2.0/eliza/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.2.0/eliza/plugin.sum new file mode 100644 index 000000000..52c8d88f8 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.2.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:pDPHV19msroawGzPS4hs56jVwOxTuBSfl8qP/ttaUOY= diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v2.2.0/petapis/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.2.0/petapis/plugin.sum new file mode 100644 index 000000000..f7d073117 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.2.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:bAI5j6PzuzAbrSKqwy+lMPmQDD6BDVdh3zwe3GDbZ/Y=