Sample Play Framework 2.2.1 project with RequireJS and YUI
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead of baratox:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
conf
project
public
test
.gitignore
README.md
build.sbt

README.md

lagivan/play-requirejs-yui

This project is based on baratox/play-requirejs with the intention to demonstrate the support of YUI with RequireJS. Javascript minification and uglification happens when running in prod mode as expected. Only YUI dependencies are taken care of by YUI itself instead of RequireJS.

Changes:

  • Added YUI support using modified version of WilcoFiers/UseYUI-for-RequireJS.
  • Removed jQuery, Backbone.js and Underscore.js.
  • Replaced separate RequireJS with Play Framework built-in support (using @helper.requireJs).
  • Upgraded to the latest Play Framework 2.2.1 version (including the replacement of Build.scala by build.sbt).

Running and building

To start the application in development mode, run:

play run

To start in production mode, run:

play start