From 77dc7b2bfb49e7afbaf6ff602f747aa71ccc6164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Molina=20Rebolledo?= Date: Tue, 23 May 2023 21:25:33 -0600 Subject: [PATCH] Deploy. --- deploy.sh | 11 +++++++++++ lambdaCore/src/com/ivmoreau/lambdaCore/Expr.scala | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..c4968ec --- /dev/null +++ b/deploy.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +wget https://github.com/com-lihaoyi/mill/releases/download/0.10.12/0.10.12 -O mill +chmod +x mill + +rm dist/main.js +rm dist/main.js.map +./mill -i lambda.fullLinkJS + +cp out/lambda/fullLinkJS.dest/main.js dist/main.js +cp out/lambda/fullLinkJS.dest/main.js.map dist/main.js.map \ No newline at end of file diff --git a/lambdaCore/src/com/ivmoreau/lambdaCore/Expr.scala b/lambdaCore/src/com/ivmoreau/lambdaCore/Expr.scala index 7fc31eb..00c9445 100644 --- a/lambdaCore/src/com/ivmoreau/lambdaCore/Expr.scala +++ b/lambdaCore/src/com/ivmoreau/lambdaCore/Expr.scala @@ -132,7 +132,7 @@ case class PrinterExpr(expr: Expr, ident: Int = 0, noIdent: Boolean = false): val identation = if (noIdent) { ("", "") } else { - (" ".repeat(ident), "\n") + (Seq.fill(ident)(" ").mkString, "\n") } val newExpr: String = expr match case Expr.Free(f) => f