https://github.com/pauldraper/play-closure
Google Closure tools integrated within the Scala Play web framework
https://github.com/pauldraper/play-closure
Last synced: 11 months ago
JSON representation
Google Closure tools integrated within the Scala Play web framework
- Host: GitHub
- URL: https://github.com/pauldraper/play-closure
- Owner: pauldraper
- Created: 2015-01-12T09:35:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-12T10:04:55.000Z (over 11 years ago)
- Last Synced: 2025-01-09T07:40:57.513Z (over 1 year ago)
- Language: Scala
- Size: 426 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# play-closure
The project brings the goodness of Google Closure and the features of Plovr into the Scala Play framework.
This is under active development.
## Usage
### Setup
(Artificats have not yet been publish...this only describes how it will work.)
1. In project/plugins.sbt, add
```scala
addSbtPlugin("com.github.pauldraper.playclosure" % "sbt-plugin" % "0.0-SNAPSHOT")
libraryDependencies ~= (_.map(_.exclude("org.sonatype.sisu", "sisu-guice")))
```
1. In build.sbt, enable the `PlayPlovr` plugin.
```scala
lazy val example = (project in file(".")).enablePlugins(PlayScala, PlayPlovr)
```
1. Add a route for Plovr in conf/routes.
```
GET /plovr/*path com.github.pauldraper.playclosure.play.controllers.PlovrController(path)
```
1. Put your Plovr configurations as .json files in conf/plovr.
### Deploying
Plovr will compile the JS and include them in the jar.