summaryrefslogtreecommitdiff
path: root/docs/pages/2 - Configuring Mill.md
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-17 11:50:20 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-17 11:53:07 -0800
commit92edcae5094e52783f825021e4172a6b072300e0 (patch)
tree8da5d9e01a9703601ef13c8ee5478501251b6836 /docs/pages/2 - Configuring Mill.md
parent650ab9c937159cd31721e576f7174c8167f19a70 (diff)
downloadmill-92edcae5094e52783f825021e4172a6b072300e0.tar.gz
mill-92edcae5094e52783f825021e4172a6b072300e0.tar.bz2
mill-92edcae5094e52783f825021e4172a6b072300e0.zip
Include example zips in docs
Diffstat (limited to 'docs/pages/2 - Configuring Mill.md')
-rw-r--r--docs/pages/2 - Configuring Mill.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md
index bfe7a8db..4755416c 100644
--- a/docs/pages/2 - Configuring Mill.md
+++ b/docs/pages/2 - Configuring Mill.md
@@ -114,6 +114,7 @@ To run tests in-process in an isolated classloader.
You can define multiple test suites if you want, e.g.:
```scala
+// build.sc
import mill._
import mill.scalalib._
object foo extends ScalaModule {
@@ -140,6 +141,7 @@ configuration options apply.
## Scala Compiler Plugins
```scala
+// build.sc
import mill._
import mill.scalalib._
object foo extends ScalaModule {
@@ -158,6 +160,7 @@ is needed on the compilation classpath (though not at runtime).
## Common Configuration
```scala
+// build.sc
import mill._
import mill.scalalib._
trait CommonModule extends ScalaModule{
@@ -179,6 +182,7 @@ the same testing framework, etc. and all that can be extracted out into the
## Custom Tasks
```scala
+// build.sc
import mill._
import mill.scalalib._
object foo extends ScalaModule {
@@ -218,6 +222,7 @@ to return nothing.
## Custom Modules
```scala
+// build.sc
import mill._
import mill.scalalib._
object qux extends Module{
@@ -244,6 +249,7 @@ You can also define your own module traits, with their own set of custom tasks,
to represent other things e.g. Javascript bundles, docker image building,:
```scala
+// build.sc
trait MySpecialModule extends Module{
...
}
@@ -254,6 +260,7 @@ object bar extends MySpecialModule
## Overriding Tasks
```scala
+// build.sc
import mill._
import mill.scalalib._