From b9bb6e5bbae7d95fe57ff8ebd3548c285c29d7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Thu, 4 Jan 2024 20:23:00 +0100 Subject: [PATCH] Add smithy4s-protocol to classpath deps --- README.md | 2 +- build.sbt | 3 ++- .../main/scala/smithy4s_codegen/components/CodeEditor.scala | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7eda227..eaa8d97 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Deployed on a very small 2vcpu and 512mb vm. The backend can be configured. -1. `SMITHY_CLASSPATH_CONFIG`: location of a json file used to load dependencies to include during code gen. The file looks content looks like this: +1. `SMITHY_CLASSPATH_CONFIG`: location of a json file used to load dependencies to include during code gen. The file content looks like this: ```json { diff --git a/build.sbt b/build.sbt index f63e71b..24a9ac4 100644 --- a/build.sbt +++ b/build.sbt @@ -198,7 +198,8 @@ lazy val backendDependencies = project .settings(smithyClasspathSettings) .settings( smithyClasspath := Seq( - "com.disneystreaming.alloy" % "alloy-core" % "0.2.8" + "com.disneystreaming.alloy" % "alloy-core" % "0.2.8", + "com.disneystreaming.smithy4s" % "smithy4s-protocol" % smithy4sVersion.value ), smithyClasspathDir := "smithy-classpath", Docker / packageName := "smithy4s-code-generation", diff --git a/modules/frontend/src/main/scala/smithy4s_codegen/components/CodeEditor.scala b/modules/frontend/src/main/scala/smithy4s_codegen/components/CodeEditor.scala index 1f0733a..4a597e9 100644 --- a/modules/frontend/src/main/scala/smithy4s_codegen/components/CodeEditor.scala +++ b/modules/frontend/src/main/scala/smithy4s_codegen/components/CodeEditor.scala @@ -91,7 +91,7 @@ class CodeEditor(dependencies: EventStream[Either[Throwable, Dependencies]]) { updatePermalinkDeps(dep), updateCheckFromPermalinkDeps(dep) ), - label(forId := dep.value, dep.value) + label(forId := dep.value, dep.value, cls := "font-mono") ) } )