Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1006 Bytes

README.md

File metadata and controls

54 lines (34 loc) · 1006 Bytes

Caliban API Sample Application

This is a Scala project for the blog article about Scala APIs.

It provides a sample API using the Caliban library.

Provided SBT commands

Clean project files

This will clean the compilation files (*.class) from the project:

sbt clean

Formatting all project files

The following command with format all the Scala files (*.scala) according to the scala format file provided in the project (.scalafmt.conf)

sbt fmt

Compiling the project files

The following command will compile the main project files:

sbt compile

Running the tests

This will execute all the tests in the project:

sbt test

Clean, format, compile, and run the tests in the same command

The sbt check command will execute the following steps:

  1. Clean all compilation files (*.class)
  2. Format all project files
  3. Compile all project files (including test classes)
  4. Execute all the tests
sbt check