Extracted an sbt plugin for Scala.js projects.