diff --git a/plugins/community/stephenh-ts-proto/v2.3.0/.dockerignore b/plugins/community/stephenh-ts-proto/v2.3.0/.dockerignore new file mode 100644 index 00000000..771bbbaa --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.3.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/community/stephenh-ts-proto/v2.3.0/Dockerfile b/plugins/community/stephenh-ts-proto/v2.3.0/Dockerfile new file mode 100644 index 00000000..d1ff4471 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.3.0/Dockerfile @@ -0,0 +1,19 @@ +# syntax=docker/dockerfile:1.10 +FROM node:22.11.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:c218f62198d07fc67e36fff5639985f29b1bdcf04a601c1d23c0ab1121f55f0b AS node + +FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 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.3.0/buf.plugin.yaml b/plugins/community/stephenh-ts-proto/v2.3.0/buf.plugin.yaml new file mode 100644 index 00000000..59c0faa3 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.3.0/buf.plugin.yaml @@ -0,0 +1,10 @@ +version: v1 +name: buf.build/community/stephenh-ts-proto +plugin_version: v2.3.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.3.0/LICENSE diff --git a/plugins/community/stephenh-ts-proto/v2.3.0/package-lock.json b/plugins/community/stephenh-ts-proto/v2.3.0/package-lock.json new file mode 100644 index 00000000..334d0b96 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.3.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.3.0" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.2.2.tgz", + "integrity": "sha512-UNtPCbrwrenpmrXuRwn9jYpPoweNXj8X5sMvYgsqYyaH8jQ6LfUJSk3dJLnBK+6sfYPrF4iAIo5sd5HQ+tg75A==", + "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.3.0", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.3.0.tgz", + "integrity": "sha512-dOkOa4gac9zhDFsHDtTRdcAJJRDorySWwGbNhpyxtZKbTnZOM2DlnCB390ZrjTOxtx6dOB4mjFmEUcgUtbwnaQ==", + "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.3.0/package.json b/plugins/community/stephenh-ts-proto/v2.3.0/package.json new file mode 100644 index 00000000..d1b47052 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.3.0/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "2.3.0" + } +} diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v2.3.0/eliza/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.3.0/eliza/plugin.sum new file mode 100644 index 00000000..04a16758 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.3.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:lTQoEljena4SJd63iBCJ/LbWcveGgRtwrb5mFskNn20= diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v2.3.0/petapis/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.3.0/petapis/plugin.sum new file mode 100644 index 00000000..6d24373b --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.3.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:4Pd/uU6S1+Gb6KLVUxBNKsRE17X9iReiiUMPUglixOM=