Skip to content

Rogach/jsdep-play

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 

jsdep-play

Example Play! Framework project which showcases automatic dependency import for Angular & RequireJS projects. Described here: Solving quadruple dependency injection problem.

I failed to find a way to add preprocessing to javascript files while still keeping sources in standard app/assets directory, thus javascript sources here are located in app/cilent directory and are compiled with preprocessor and injected into assets pipeline. As an unfortunate side effect, some plugins break - for example, in this template I had to place js-hint directly inside preprocessor, since standard plugin is coupled to app/assets directory.

Usage

jsdep script requires Node.js being present and runnable and depends on several Node.js libraries, which you can install by running npm install in root directory. After that, simple sbt run should start Play! server as usual.

About

Play! template for Angular + RequireJS setup with automated dependency importing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published