-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add connect-dart plugin --------- Co-authored-by: Michael Fridman <[email protected]> Signed-off-by: Sri Krishna Paritala <[email protected]>
- Loading branch information
1 parent
776ca2f
commit de03869
Showing
6 changed files
with
35 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,4 @@ | ||
source: | ||
github: | ||
owner: connectrpc | ||
repository: connect-dart |
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,2 @@ | ||
* | ||
!Dockerfile |
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,15 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM dart:3.5.4-sdk AS build | ||
|
||
WORKDIR /build | ||
RUN git clone --depth=1 --branch v0.1.0 https://github.com/connectrpc/connect-dart.git | ||
RUN cd connect-dart/packages/connect \ | ||
&& dart pub get \ | ||
&& dart compile exe bin/protoc-gen-connect-dart.dart -o /build/protoc-gen-connect-dart | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link /runtime/ / | ||
COPY --from=build --link /build/protoc-gen-connect-dart . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-dart" ] |
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,12 @@ | ||
version: v1 | ||
name: buf.build/connectrpc/dart | ||
plugin_version: v0.1.0 | ||
source_url: https://github.com/connectrpc/connect-dart | ||
integration_guide_url: https://connectrpc.com/docs/dart/getting-started | ||
description: Generates client stubs for connectrpc. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/dart:v21.1.2 | ||
output_languages: | ||
- dart | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/connectrpc/connect-dart/blob/v0.1.0/LICENSE |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/connectrpc/dart/v0.1.0/eliza/plugin.sum
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 @@ | ||
h1:2oeeATT8L4LABkOyY23ovHmaXCTA9oMjOMxyEKiCy/Q= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/connectrpc/dart/v0.1.0/petapis/plugin.sum
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 @@ | ||
h1:MKDLb8WHr7/igQ9YQG0YlwDcAL8aLo+/szO5QdLrY5A= |