Permalink
Browse files

Adding play-yeoman plugin

  • Loading branch information...
milliondreams committed Oct 13, 2013
1 parent 242963a commit 7e270eb60c265daaa3905968be17596884c18f25
Showing with 14 additions and 1 deletion.
  1. +4 −0 build.sbt
  2. +7 −1 conf/routes
  3. +3 −0 project/plugins.sbt
View
@@ -1,4 +1,5 @@
import play.Project._
+import com.tuplejump.sbt.yeoman.Yeoman
name := "hello-play-scala"
@@ -10,3 +11,6 @@ libraryDependencies ++= Seq(
)
playScalaSettings
+
+Yeoman.yeomanSettings
+
View
@@ -2,7 +2,13 @@
# This file defines all application routes (Higher priority routes first)
# ~~~~
-GET / controllers.Application.index()
+#GET / controllers.Application.index()
+
+GET / com.tuplejump.playYeoman.Yeoman.redirectRoot(base="/ui/")
+
+GET /ui com.tuplejump.playYeoman.Yeoman.index
+
+-> /ui/ yeoman.Routes
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
View
@@ -6,3 +6,6 @@ resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/release
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0")
+
+//Use the play-yeoman plugin to get yeoman support in the play console
+addSbtPlugin("com.tuplejump" % "sbt-yeoman" % "0.6.2")

0 comments on commit 7e270eb

Please sign in to comment.