Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.24 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.24 KB

Scala Builder

A thin wrapper to Scala CLI to add multimodule support to the command line, also an MVP for https://github.com/virtuslab/scala-compose

Use Cases

  • full stack app with Scala.js front-end and JVM/Native/Node.js server

Prerequisites

  • Scala CLI 1.0.0-RC2 (as long as export --json to std-out subcommand is supported)

Building Scala Builder

on macOS/Linux

  1. add ~/.local/bin to the PATH
  2. package scala-builder command with
scala --power package -f -o ~/.local/bin/scala-builder --workspace . modules/scala-builder

Running the Full Stack Webserver example

  1. cd examples/1-full-stack-app
  2. scala-builder run webserver, use optional --debug flag for verbose output (like the task graph)

Setting up project

This is a Scala CLI project, meaning that before working on any of the modules, you should initialise Scala CLI for the module you wish to work on (currently there is only one).

For VS Code + Metals extension, run the following command at the root of this repository

scala setup-ide --workspace . modules/scala-builder

then when opening any scala file from modules/scala-builder, Metals will activate and correctly type the code.