Skip to content

Commit

Permalink
build: fix code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
burdiyan committed Apr 10, 2023
1 parent 8741ea8 commit 535e2ce
Show file tree
Hide file tree
Showing 28 changed files with 8,449 additions and 12,279 deletions.
8 changes: 4 additions & 4 deletions build/rules/js/js.build_defs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def yarn_install(
name: str,
srcs = [
"frontend/package.json",
"frontend/yarn.lock",
"package.json",
"yarn.lock",
],
deps = [],
labels = [],
Expand Down Expand Up @@ -33,7 +33,7 @@ HOME=$(eval echo ~$(whoami))
TMPDIR="/tmp"
cd $WORKSPACE
$TOOLS_YARN install
cp frontend/node_modules/.yarn-state.yml $OUT
cp node_modules/.yarn-state.yml $OUT
""",
tools = {
"yarn": [CONFIG.YARN_TOOL],
Expand Down Expand Up @@ -109,4 +109,4 @@ chmod +x $OUT
},
visibility = visibility,
deps = deps + [yarn_deps],
)
)
12 changes: 6 additions & 6 deletions build/tools/BUILD.plz
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ go_binary(
workdir = "../..",
)

pnpm_binary(
yarn_binary(
name = "protoc-gen-es",
pnpm_deps = "//:pnpm",
yarn_deps = "//:yarn",
)

pnpm_binary(
yarn_binary(
name = "protoc-gen-connect-web",
pnpm_deps = "//:pnpm",
yarn_deps = "//:yarn",
)

pnpm_binary(
yarn_binary(
name = "graphql-codegen",
pnpm_deps = "//:pnpm",
yarn_deps = "//:yarn",
)

gomod(
Expand Down
4 changes: 2 additions & 2 deletions dev
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main():
cmds, "build-desktop", "Builds the Tauri desktop app for the current platform."
)
def build_desktop(args):
run("plz build //backend:mintterd")
run("plz build //backend:mintterd //:yarn")
run("cargo tauri build --debug")

@cmd(cmds, "ping-p2p", "Execute ping utility to check visibility.")
Expand Down Expand Up @@ -111,7 +111,7 @@ def main():

@cmd(cmds, "run-desktop", "Run Tauri desktop app for development.")
def run_desktop(args):
run("plz build //backend:mintterd")
run("plz build //backend:mintterd //:yarn")
return run("yarn tauri:dev", args=args)

@cmd(cmds, "release", "Cut a new release.")
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"tamagui": "1.12.2",
"typescript": "4.9.4",
"unist-util-visit": "4.1.1",
"vercel": "latest",
"xstate": "4.35.4",
"zod": "3.21.4"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.6.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-connect-web v0.8.5 with parameter "target=ts,import_extension=none"
// @generated from file accounts/v1alpha/accounts.proto (package com.mintter.accounts.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.1.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts,import_extension=none"
// @generated from file accounts/v1alpha/accounts.proto (package com.mintter.accounts.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.6.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-connect-web v0.8.5 with parameter "target=ts,import_extension=none"
// @generated from file daemon/v1alpha/daemon.proto (package com.mintter.daemon.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.1.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts,import_extension=none"
// @generated from file daemon/v1alpha/daemon.proto (package com.mintter.daemon.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.6.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-connect-web v0.8.5 with parameter "target=ts,import_extension=none"
// @generated from file documents/v1alpha/changes.proto (package com.mintter.documents.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts,import_extension=none"
// @generated from file documents/v1alpha/changes.proto (package com.mintter.documents.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -24,7 +24,7 @@ export class GetChangeInfoRequest extends Message<GetChangeInfoRequest> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.GetChangeInfoRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -79,7 +79,7 @@ export class ListChangesRequest extends Message<ListChangesRequest> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ListChangesRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "object_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -129,7 +129,7 @@ export class ListChangesResponse extends Message<ListChangesResponse> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ListChangesResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "changes", kind: "message", T: ChangeInfo, repeated: true },
Expand Down Expand Up @@ -201,7 +201,7 @@ export class ChangeInfo extends Message<ChangeInfo> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ChangeInfo";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.6.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-connect-web v0.8.5 with parameter "target=ts,import_extension=none"
// @generated from file documents/v1alpha/comments.proto (package com.mintter.documents.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts,import_extension=none"
// @generated from file documents/v1alpha/comments.proto (package com.mintter.documents.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down Expand Up @@ -40,7 +40,7 @@ export class CreateConversationRequest extends Message<CreateConversationRequest
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.CreateConversationRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "document_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -91,7 +91,7 @@ export class AddCommentRequest extends Message<AddCommentRequest> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.AddCommentRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -133,7 +133,7 @@ export class DeleteConversationRequest extends Message<DeleteConversationRequest
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.DeleteConversationRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -174,7 +174,7 @@ export class ResolveConversationRequest extends Message<ResolveConversationReque
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ResolveConversationRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -208,7 +208,7 @@ export class ResolveConversationResponse extends Message<ResolveConversationResp
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ResolveConversationResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
Expand Down Expand Up @@ -255,7 +255,7 @@ export class DeleteCommentRequest extends Message<DeleteCommentRequest> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.DeleteCommentRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -311,7 +311,7 @@ export class ListConversationsRequest extends Message<ListConversationsRequest>
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ListConversationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "document_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -361,7 +361,7 @@ export class ListConversationsResponse extends Message<ListConversationsResponse
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ListConversationsResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "conversations", kind: "message", T: Conversation, repeated: true },
Expand Down Expand Up @@ -427,7 +427,7 @@ export class Selector extends Message<Selector> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.Selector";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "block_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -486,7 +486,7 @@ export class Conversation extends Message<Conversation> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.Conversation";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.6.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-connect-web v0.8.5 with parameter "target=ts,import_extension=none"
// @generated from file documents/v1alpha/content_graph.proto (package com.mintter.documents.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts,import_extension=none"
// @generated from file documents/v1alpha/content_graph.proto (package com.mintter.documents.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down Expand Up @@ -32,7 +32,7 @@ export class ListCitationsRequest extends Message<ListCitationsRequest> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ListCitationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "document_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down Expand Up @@ -74,7 +74,7 @@ export class ListCitationsResponse extends Message<ListCitationsResponse> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.ListCitationsResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "links", kind: "message", T: Link, repeated: true },
Expand Down Expand Up @@ -123,7 +123,7 @@ export class Link extends Message<Link> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.Link";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "source", kind: "message", T: LinkNode },
Expand Down Expand Up @@ -179,7 +179,7 @@ export class LinkNode extends Message<LinkNode> {
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "com.mintter.documents.v1alpha.LinkNode";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "document_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.6.0 with parameter "target=ts,import_extension=none"
// @generated by protoc-gen-connect-web v0.8.5 with parameter "target=ts,import_extension=none"
// @generated from file documents/v1alpha/documents.proto (package com.mintter.documents.v1alpha, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Loading

0 comments on commit 535e2ce

Please sign in to comment.