Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Target type abstract to allow overriding by different concrete implementations #2402

Merged
merged 18 commits into from
Apr 3, 2023
Prev Previous commit
.
lihaoyi committed Apr 3, 2023
commit dcb7d9fb0b5ba48d6b35ac354008e7ef6b6602fa
2 changes: 1 addition & 1 deletion example/web/4-webapp-scalajs/build.sc
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ object app extends RootModule with ScalaModule{
ivy"com.lihaoyi::scalatags:0.12.0"
)

def resources = T.sources{
def resources = T{
os.makeDir(T.dest / "webapp")
val jsPath = client.fastLinkJS().dest.path
// Move the main.js[.map] files into the proper filesystem position
2 changes: 1 addition & 1 deletion example/web/5-webapp-scalajs-shared/build.sc
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ object app extends RootModule with AppScalaModule{

def ivyDeps = Agg(ivy"com.lihaoyi::cask:0.9.0")

def resources = T.sources{
def resources = T{
os.makeDir(T.dest / "webapp")
val jsPath = client.fastLinkJS().dest.path
os.copy(jsPath / "main.js", T.dest / "webapp" / "main.js")