summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-18 18:01:34 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-18 18:05:36 -0800
commit47083d404090ffe13deb8892d833ff4401d2ed12 (patch)
tree5680581162867d3faaafa90d9085c20c00d14b5e /readme.md
parentfc2574baa346f9f75d8926ace8259ad5aa82fd8d (diff)
downloadmill-47083d404090ffe13deb8892d833ff4401d2ed12.tar.gz
mill-47083d404090ffe13deb8892d833ff4401d2ed12.tar.bz2
mill-47083d404090ffe13deb8892d833ff4401d2ed12.zip
Add `mill dev` support to our own build
Also add Ammonite `foo.repl` support to Mill
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md21
1 files changed, 14 insertions, 7 deletions
diff --git a/readme.md b/readme.md
index b3c4235c..d520c454 100644
--- a/readme.md
+++ b/readme.md
@@ -24,12 +24,14 @@ Run unit test suite:
```bash
sbt main/test
+mill main.test
```
Build a standalone executable jar:
```bash
sbt bin/test:assembly
+mill devAssembly
```
Now you can re-build this very same project using the build.sc file, e.g. re-run
@@ -38,25 +40,28 @@ core unit tests
e.g.:
```bash
./target/bin/mill core.compile
-./target/bin/mill main.test.compile
-./target/bin/mill main.test
-./target/bin/mill scalalib.assembly
+
+./out/devAssembly/dest/mill core.compile
+./out/devAssembly/dest/mill main.test.compile
+./out/devAssembly/dest/mill main.test
+./out/devAssembly/dest/mill scalalib.assembly
```
There is already a `watch` option that looks for changes on files, e.g.:
```bash
./target/bin/mill --watch core.compile
+./out/devAssembly/dest/mill --watch core.compile
```
You can get Mill to show the JSON-structured output for a particular `Target` or
`Command` using the `show` flag:
```bash
-./target/bin/mill show core.scalaVersion
-./target/bin/mill show core.compile
-./target/bin/mill show core.assemblyClasspath
-./target/bin/mill show main.test
+./out/devAssembly/dest/mill show core.scalaVersion
+./out/devAssembly/dest/mill show core.compile
+./out/devAssembly/dest/mill show core.assemblyClasspath
+./out/devAssembly/dest/mill show main.test
```
Output will be generated into a the `./out` folder.
@@ -68,6 +73,8 @@ it via:
```bash
sbt "~bin/test:run main.test"
sbt "~bin/test:run"
+mill --watch dev main.test
+mill --watch dev
```
Lastly, you can generate IntelliJ Scala project files using Mill via