Last active
August 29, 2015 14:06
-
-
Save m242/50ee70be81212d99401c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "web" | |
version := "2.0" | |
lazy val root = Project(id="web", base=file(".")).enablePlugins(PlayScala) | |
pipelineStages := Seq(uglify, digest, gzip) | |
scalaVersion := "2.11.2" | |
LessKeys.compress in Assets := true | |
includeFilter in (Assets, LessKeys.less) := "*.less" | |
excludeFilter in (Assets, LessKeys.less) := "_*.less" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Test</title> | |
<link rel="stylesheet" href="@routes.Assets.versioned("css/test.min.css")"> | |
<script src="@routes.Assets.versioned("js/test.js")" type="text/javascript"></script> | |
</head> | |
<body> | |
Test. | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" | |
// The Play plugin | |
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.4") | |
// web plugins | |
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.2") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.1") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.5") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.1") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.0") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-uglify" % "1.0.3") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET / controllers.Application.index | |
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/assets/js/test.coffee | |
alert "testing!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* app/assets/css/test.less */ | |
body { background-color: blue; color: white; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment