summaryrefslogtreecommitdiff
path: root/scalajslib
Commit message (Collapse)AuthorAgeFilesLines
* more fixes for scalajs envLi Haoyi2019-06-132-3/+7
|
* Allow configuration of JSEnv used for Scala.js tests and runs (#628)Li Haoyi2019-06-136-44/+99
| | | | | | | | * . * . * .
* Bump ammonite to 1.6.7 (#610)Li Haoyi2019-05-191-1/+0
| | | | | | | | | | | | | | | | * bump ammonite to 1.6.7 * upgrade all the things * add scalaj-http shims for bootstrapping * wip * tweak-error-message * tweak coursier * .
* Avoid unnecessary dependency downloading by providing fetches per cache ↵gehnaphore2018-12-201-1/+2
| | | | | | | | | | | | policy (#494) * Avoid unnecessary dependency downloading by providing fetches per cache policy; add ticker logging when they are downloading * Fix GenIdeaTests by making the Log context Option[]al * Add some comments * Rebase and resolve
* Generalize Zinc Worker (#514)Li Haoyi2018-12-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | * Generalize Zinc worker - Compiler bridges can now be either pre-compiled or on-demand-compiled - Scala library/compiler jar discovery is now configurable - Zinc compiler cache is now configurable, rather than being hardcoded at n=1 * . * update constructor args * remove duplicate util/AggWrapper.scala file * fix * fix * fix * cleanup
* collapse boilerplate folder structure within src/ folders (#505)Li Haoyi2018-12-1210-0/+0
| | | | | | * collapse boilerplate folder structure within src/ folders * .
* First pass at splitting out worker-api from mill core. (#504)Li Haoyi2018-12-129-56/+59
| | | | | | | | | This reduces the {scala,scalajs,scalanative}-worker dependency from the entirety of Mill to a much narrower `mill.api` module. This reduces the amount of classpath pollution within these workers, should mean they're much faster to download the first time, and reduces the amount of random junk they would pull in if they were to be used outside of the Mill project. The interactions between the various *Modules and their *WorkerImpls has been narrowed down to the `*.api` modules, which only depend on other `*.api` modules. A lot of things have been moved around; user code is unlikely to break, but it's possible some will if it references classes that have been moved around. Forwarders have been left for the few internal classes that Mill uses in it's own `build.sc`, to support bootstrapping. Third-party code which breaks should be a straightforward to fix just by updating imports The `*.api` modules have minimal dependencies (mostly uPickle and os-lib) and minimal code. There is still a bunch of implementation code in there: some of it defining data-types that are commonly sent across the module/worker interface (`Agg`, `PathRef`, ...), and some of it just general helper functions that are needed both in modules and workers. The latter code isn't strictly API definitions, but for now is small enough it's not worth splitting into it's own module
* WIP migrating over from `ammonite.ops` to `os` module.Li Haoyi2018-11-056-39/+31
| | | | __.compile works, haven't run tests yet
* Fix incremental compilation when a Scala project depends on a Java project ↵Guillaume Martres2018-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#414) * Upgrade ammonite to 1.1.2-30-53edc31 This is mainly to get https://github.com/lihaoyi/Ammonite/pull/851 which should reduce the amount of unnecessary work done by incremental compilation in the Mill build. This requires some code changes since this means we now depend on a more recent version of coursier, as a side-effect this means that we do not depend on scalaz anymore. Also use the same ammonite version in the Mill build and in ScalaModule#ammoniteReplClasspath. Also remove an incorrect dependency in the caffeine integration test. This was always wrong but did not start failing until this commit, probably due to dependencies appearing in a different order on the classpath. * Rename ScalaWorker to ZincWorker Starting with the next commit, it will be used in Java-only projects too, so the name is misleading. * Upgrade to Zinc 1.2.1 * Fix incremental compilation when a Scala project depends on a Java project Before this commit, JavaModule#compile simply called javac unconditionally, thus generating new classfiles every time. But if a Scala project depends on a Java project, this will throw off the incremental compilation algorithm which will unnecessarily recompile files. To avoid this we now use Zinc to compile Java projects too (as a bonus this means that Java compilation becomes incremental). This required some refactoring in ZincWorkerImpl to be able to compile stuff without having to pass Scala-specific options. The issue solved by this commit could be reproduced by running in the Mill repository: $ mill main.compile $ mill -i @ main.compile() and observing that before this commit, the `main.compile()` call ended up recompiling code.
* more terminology fixesLi Haoyi2018-08-221-1/+1
|
* standardize more worker terminologyLi Haoyi2018-08-222-13/+13
|
* tweaksLi Haoyi2018-08-221-1/+1
|
* standardize naming of ScalaWorker/Api/ImplLi Haoyi2018-08-224-13/+13
|
* fix buildLi Haoyi2018-08-221-2/+2
|
* Tidying up:Li Haoyi2018-08-222-0/+0
| | | | | - Combine `main/` and `core/` - Rename `jsbridges/`/`scalanativebridges/` -> `worker/` for consistency with other terminology
* Add support for Dotty projects (#397)Guillaume Martres2018-08-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Abstract over the scala compiler organization * Support using a locally published compiler Publishing locally with sbt means publishing ivy-style, which uses a different naming convention than maven, we now handle both cases. * Add minimal support for Dotty projects * Rewrite scalalib.Dep, introduce scalalib.CrossVersion Instead of Dep being a trait with three cases (Java/Scala/Point), it is now a case class where the cross field is an instance of the CrossVersion trait which has three cases (Constant/Binary/Full). This is more versatile since it allows for non-empty constant suffixes which will be used to implement withDottyCompat in the next commit. It's also a cleaner separation of concerns. We also deduplicate various pieces of codes that computed the artifact name: this is now always handled in Dep and CrossVersion. * Add simple way to use Scala 2 deps in a Dotty project This is similar to the withDottyCompat method in the sbt-dotty plugin. * Turn off the Dotty test on Java >= 9
* Add a `visualize` command to render portions of the build graph as SVG (#349)Li Haoyi2018-05-251-16/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Transitive reduction of visualized graph via jgrapht now works ``` out/dev/launcher/dest/run -i visualize __.compile _ out/dev/launcher/dest/run -i visualize core.__ ``` * Move test running logic from scalaworker into scalalib This is to try and reduce the size of the classpath we are passing to the test runner subprocess, in an attempt to fix the command-line-too-long errors we're getting in Appveyor. Now the test runner subprocess should no longer need Zinc or all of it's transitive dependencies * - Break out `GraphvizTools` into a separate Mill module, to avoid bloating the main jar and try to shorten the `MILL_SCALA_WORKER` classpath being sent to scalajslib.test (which is blowing up on windows as the CLI command is too long) - Move the meat of `resolveDependencies` from `scalalib` to `main`, to support resolving mill modules - DRY up resolution of mill modules in `Util.millProjectModule` * fix mill module resolution * Tweaks to try and make zinc work again... * Tweak `Module#reflect` to try and make it happy with `visualize` module... * fix integration test classpath * move visualization into it's own module
* Enable JUnit testing, via sbt-test-interface, for `JavaModule`sLi Haoyi2018-04-081-3/+1
|
* avoid recursionLi Haoyi2018-04-071-3/+1
|
* clean up JavaModule/ScalaModule interactions and consolidate extensions into ↵Li Haoyi2018-04-071-2/+2
| | | | new resolveFooDependency methods
* bump upickle, ammonite versionsLi Haoyi2018-03-251-1/+5
|
* Support scala milestone releases (with fixes for 2.13.0-M3) (#247)Nikolay Tatarinov2018-03-201-11/+2
| | | | | | | | | | * return full scala version for milestone releases * complete support for scala 2.13.0-M2 * match 2.13 milestone releases for compiler bridge sources * add hello world test case for scala 2.13.0-M3
* avoid showing a stack trace if the ScalaJSModule gives a linking error, ↵Li Haoyi2018-03-194-11/+34
| | | | since the stdout will have the necessary information for debugging anyway
* Java 9 optimization by caching rt.jar (#239)Robby2018-03-192-5/+10
| | | | | | | | | | | | | | * Upgraded Ammonite to 1.0.5-7-f032887 that includes a Java 9 performance optimization for mill's client-server mode (lihaoyi/Ammonite#773). * Java 9 optimization for interactive mode by caching rt.jar. * Refactored based on @lihaoyi's comments on #239. * Removed client side rt.jar caching. * Propagatio of home path from Cli. * Propagation, propagation, propagation!
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2018-03-186-32/+64
|\
| * Changes to make {clientserver,main,scalalib,scalajslib}.test work under Java ↵Robby2018-03-103-18/+18
| | | | | | | | | | | | | | | | | | | | 9 (#217) * Append "exported rt.jar" when creating URLClassLoader. * Disabled tests involving Scala 2.10 & 2.11 and nashorn. * Use java.net.URLClassLoader.
| * ScalaJSModule: Support to switch between NoModule and CommonJSModule ↵Lorenzo Gabriele2018-03-094-14/+46
| | | | | | | | ModuleKinds (#212)
* | Properly close Scala.js test adapters when done, after letting the IO drain ↵Li Haoyi2018-03-184-16/+28
|/ | | | properly
* Improve fullOpt behavior (#203)Dennis4b2018-03-052-4/+12
| | | | | | | | | Specifically, fix 2 issues in order to better mirror the behavior of "sbt fullOptJS" - Invoke the Google Closure Compiler after generating the optimized Javascript output - Set scala.scalajs.LinkingInfo.developmentMode = false (and productionMode = true) when building fullOpt in order to allow Scala.js code to distinguish between development and production mode.
* Allows users to customize Node.js (Scala.js' NodeJSEnv) in ScalaJSModule (#195)Robby2018-03-056-17/+158
| | | | | | | | | | | | | | * Adds Node.js configuration in ScalaJSModule. * Adds Node.js configuration in ScalaJSModule test framework. * Refactored ScalaJSBridge Node.js env creation. * Readjusted ScalaJSBridge 0.6 formatting. * Added Node.js config tests. * Removed NodeJSConfig ScalaTest tests and improved log test conditions.
* Remove one more `runMain` test caseLi Haoyi2018-03-031-8/+3
|
* make mainClass discovery work in ScalaJSModule#runLi Haoyi2018-03-033-48/+20
| | | | Also disable ScalaJSModule#runMain, since the official Scala.js-SBT plugin does not support it and it requires an expensive re-linking every time it is run.
* share repositories between ScalaWorker and ScalaModuleLi Haoyi2018-03-021-1/+1
|
* Allow people to substitute in their own implementation of ↵Li Haoyi2018-03-021-1/+2
| | | | ScalaModule#scalaWorker to configure resolvers/etc.
* Add dsl for SCM (now called VersionControl) (#168)Guillaume Massé2018-02-281-5/+2
| | | The scm url syntax is a source of confusion for developper. I added VersionControl.github() to simplify this process. We can add other common VersionControl url scheme like Bazar, etc.
* Add predefined licenses from spdx (#144)Guillaume Massé2018-02-261-3/+1
| | | | | | * Add predefined licenses from spdx * Fix License usages
* 0.1.30.1.3Li Haoyi2018-02-251-1/+1
|
* make scala.js work with multi-module projects (#165)Nikolay Tatarinov2018-02-268-33/+178
|
* A few attempts at micro-optimizing the current hot spotsLi Haoyi2018-02-252-2/+2
|
* use DepSyntax in Scala.js tests (#155)Nikolay Tatarinov2018-02-241-2/+2
|
* support multiple test frameworks (#148)Nikolay Tatarinov2018-02-222-4/+4
| | | support multiple test frameworks
* fix-testsLi Haoyi2018-02-211-1/+3
|
* - Fix UpickleTests' JS case when running forkedLi Haoyi2018-02-111-3/+3
| | | | - Shard out forked/local integration tests over the different `test-mill-*.sh` scripts, to try and reduce test times while maintaining coverage
* make test-mill-release run integration tests using the release assemblyLi Haoyi2018-02-111-1/+1
|
* Properly pick up non-top-level sjsir files during `fastOptJS`Li Haoyi2018-02-111-1/+1
|
* Refactor ScalaModule to simplify it and delay ivy resolution until the last ↵Li Haoyi2018-02-111-5/+5
| | | | moment
* make ScalaJSModule override scalaLibraryDeps instead of overriding ivyDeps, ↵Li Haoyi2018-02-111-2/+1
| | | | to reduce the change for conflict
* WIP getting Scala.js dependencies working nicelyLi Haoyi2018-02-111-6/+6
|
* fix jsbridges dependencyLi Haoyi2018-02-101-1/+1
|
* Make ScalaJSModule avoid stomping over existing definitionsLi Haoyi2018-02-101-3/+8
|