From 1358ad6a1a657e37bb270f7ceb60ab5846678552 Mon Sep 17 00:00:00 2001 From: Jan Christopher Vogt Date: Tue, 11 Oct 2016 11:07:36 -0400 Subject: cbt dotty usage --- docs/docs/usage/cbt-projects.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/docs/usage/cbt-projects.md (limited to 'docs/docs') diff --git a/docs/docs/usage/cbt-projects.md b/docs/docs/usage/cbt-projects.md new file mode 100644 index 000000000..1ae25efd5 --- /dev/null +++ b/docs/docs/usage/cbt-projects.md @@ -0,0 +1,19 @@ +--- +layout: default +title: "cbt" +--- + +Using Dotty with cbt +==================== +cbt comes with built-in dotty support. Follow the +[cbt tutorial](https://github.com/cvogt/cbt/), then simply extend `Dotty` in the Build class. + +```scala +// build/build.scala +import cbt._ +class Build(val context: Context) extends Dotty{ + ... +} +``` + +Also see the [example project](https://github.com/cvogt/cbt/tree/master/examples/dotty-example). -- cgit v1.2.3