diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-11-03 15:32:34 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:07 +0100 |
commit | 7fbb4513489df11f831d69ca07a58a809493361e (patch) | |
tree | 9d8c885d1a932f567e9ae6cf1316c1454bffbe8a /docs/docs/contributing/getting-started.md | |
parent | b2143a1dd44b6a87b8a323c4440a5f2bc6897672 (diff) | |
download | dotty-7fbb4513489df11f831d69ca07a58a809493361e.tar.gz dotty-7fbb4513489df11f831d69ca07a58a809493361e.tar.bz2 dotty-7fbb4513489df11f831d69ca07a58a809493361e.zip |
Update documentation for new sbt commands
Diffstat (limited to 'docs/docs/contributing/getting-started.md')
-rw-r--r-- | docs/docs/contributing/getting-started.md | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/docs/docs/contributing/getting-started.md b/docs/docs/contributing/getting-started.md index bea5b6962..4c7299914 100644 --- a/docs/docs/contributing/getting-started.md +++ b/docs/docs/contributing/getting-started.md @@ -19,21 +19,48 @@ Requirements Make sure that you are using Java 8 or later, the output of `java -version` should contain `1.8`. -Compiling and running code --------------------------- +Compiling and Running +--------------------- +Start by cloning the repository: + +```none +$ git clone https://github.com/lampepfl/dotty.git +$ cd dotty +``` + +Dotty provides a standard sbt build: compiling, running and starting a repl can +all be done from within sbt using + +```none +$ sbt +> dotc tests/pos/HelloWorld.scala +> dotr HelloWorld +hello world +``` + +there is also a bash script that can be used in the same way: + ```bash -git clone https://github.com/lampepfl/dotty.git -cd dotty -# Clone dotty-compatible stdlib. Needed for running the test suite. -git clone -b dotty-library https://github.com/DarkDimius/scala.git scala-scala # Compile code using Dotty ./bin/dotc tests/pos/HelloWorld.scala # Run it with the proper classpath ./bin/dotr HelloWorld ``` + Starting a REPL --------------- -```bash -./bin/dotr +```none +$ sbt +> repl +Welcome to Scala.next (pre-alpha) (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101). +Type in expressions to have them evaluated. +Type :help for more information. +scala> +``` + +or via bash: + +```none +$ ./bin/dotr ``` |