Skip to content

Commit

Permalink
Adds protobuf-ts v2.8.2 (#290)
Browse files Browse the repository at this point in the history
Fixes #256
  • Loading branch information
mfridman authored Jan 6, 2023
1 parent a9bb689 commit 3a99653
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/community/timostamm-protobuf-ts/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source:
npm_registry:
name: "@protobuf-ts/plugin"
3 changes: 3 additions & 0 deletions plugins/community/timostamm-protobuf-ts/v2.8.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
11 changes: 11 additions & 0 deletions plugins/community/timostamm-protobuf-ts/v2.8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM node:18.12.1-alpine3.17 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/@protobuf-ts/plugin/bin/protoc-gen-ts

FROM gcr.io/distroless/nodejs18-debian11
COPY --link --from=build /app /app
USER nobody
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-ts" ]
20 changes: 20 additions & 0 deletions plugins/community/timostamm-protobuf-ts/v2.8.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: v1
name: buf.build/community/timostamm-protobuf-ts
plugin_version: v2.8.2
source_url: https://github.com/timostamm/protobuf-ts
description: Generates Protobuf and RPC for TypeScript.
output_languages:
- javascript
- typescript
registry:
npm:
import_style: module
deps:
- package: '@protobuf-ts/runtime'
version: ^2.8.2
- package: '@protobuf-ts/runtime-rpc'
version: ^2.8.2
opts:
- output_javascript,optimize_code_size,long_type_string,add_pb_suffix,ts_nocheck,eslint_disable
spdx_license_id: Apache-2.0
license_url: https://github.com/timostamm/protobuf-ts/blob/v2.8.2/LICENSE
73 changes: 73 additions & 0 deletions plugins/community/timostamm-protobuf-ts/v2.8.2/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/timostamm-protobuf-ts/v2.8.2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "plugins-timostamm-protobuf-ts",
"version": "1.0.0",
"dependencies": {
"@protobuf-ts/plugin": "2.8.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:gETb6QP9XkqMC4vnaFmn1p6w1PeDryX6vrnKB01LZHA=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:gTFEdIp9t1/2emz+DopgZ59SbyKkSNhXTFp+PemvV8g=

0 comments on commit 3a99653

Please sign in to comment.