Skip to content

bishabosha/scala-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The new way to glue Scala CLI modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages