namin/lms-sandbox — Issue #1: create a file extension (maybe .scalajs?) which acts like build.sbt, setting up a file to be the scalajs DSL
Author: jstrachan
Created: 2011-11-03 09:55:21+00:00
State: open

So it'd have default imports of some package objects/Predef type constructs.

e.g.

// Foo.scalajs
package foo

def blah(x: Int) = x * 2

class Whatnot(val y: String) {
def thingy = "Hello " + y
}

which then pseudo-generates something like this from the perspective of Scala IDE / sbt...

// Foo.scala
package foo

import scalajs._

def blah(x: Int) = x * 2

class Whatnot(val y: String) {
def thingy = "Hello " + y
}

which then aliases things like scalajs.Int => scala.js.Rep[Int] etc