Skip to content
NOUGUIER Olivier edited this page May 31, 2013 · 12 revisions

Sbt plugin declaration

In project/plugins.sbt

scalaVersion := "2.9.2" is needed AFAIU by play2 plugin.

addSbtPlugin("net.orcades" % "sbt-dart-plugin" % "0.2.2-SNAPSHOT")

Eclipse settings.

The plugin will can append eclipse nature/build command with eclipse sbt command

sbt eclipse

Declare entryPoints (dart and web_ui)

Dart resources must be located in $base/web folder.

Raw dart file

Must be declared in build.sbt as:

dartEntryPoints += "sosimple.dart"

or

dartEntryPoints ++= Seq("sosimple.dart", "anotherSimple.dart")

web_ui

Must be declared in build.sbt as:

dartWebUIEntryPoints += "speakers.html"

or

dartWebUIEntryPoints ++= Seq("speakers.html, "module/anotherWebUI.html")

Web UI Simple Page Applications are deployed as:

http://localhost:9000/out/speakers.html

and

http://localhost:9000/module/out/anotherWebUI.html

Development flag

To deploy sourcemap you must add in build.sbt

dartDev := true

To skip js generation, work only with dartium (chrome with dart vm).

dartNoJs := true

To fill console with logs :)

dartVerbose := true