-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update protoc and query-es plugins (#1252)
- Loading branch information
1 parent
d605c30
commit 9d9f5b6
Showing
70 changed files
with
1,112 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.7 | ||
FROM node:20.13.1-alpine3.19 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-connect-query --bundle --external:typescript --platform=node --outfile=protoc-gen-connect-query.js | ||
|
||
FROM gcr.io/distroless/nodejs20-debian12:latest@sha256:36b2247bda45163fff0cfef127806d8c7661648ceb27b1c255eb987df3388551 AS node | ||
|
||
FROM gcr.io/distroless/cc-debian12:latest@sha256:e1065a1d58800a7294f74e67c32ec4146d09d6cbe471c1fa7ed456b2d2bf06e0 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-connect-query.js /app/protoc-gen-connect-query.js | ||
COPY --link --from=build /app/node_modules/typescript /app/node_modules/typescript | ||
USER nobody | ||
ENTRYPOINT ["/nodejs/bin/node"] | ||
CMD [ "/app/protoc-gen-connect-query.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,22 @@ | ||
version: v1 | ||
name: buf.build/connectrpc/query-es | ||
plugin_version: v1.4.1 | ||
source_url: https://github.com/connectrpc/connect-query-es | ||
integration_guide_url: https://connectrpc.com/docs/web/query/getting-started | ||
description: Generates client stubs for calling Connect services with TanStack Query. | ||
deps: | ||
- plugin: buf.build/bufbuild/es:v1.9.0 | ||
output_languages: | ||
- javascript | ||
- typescript | ||
registry: | ||
npm: | ||
import_style: module | ||
rewrite_import_path_suffix: connectquery.js | ||
deps: | ||
- package: '@connectrpc/connect-query' | ||
version: ^1.4.1 | ||
- package: '@bufbuild/protobuf' | ||
version: ^v1.9.0 | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/connectrpc/connect-query-es/blob/v1.4.1/LICENSE |
Oops, something went wrong.