[2.1.2-Java] Combine JavaScript files into one?

129 views
Skip to first unread message

Chris

unread,
Aug 4, 2013, 7:08:35 PM8/4/13
to play-fr...@googlegroups.com

Using Play! 2.1.2 (Java) and Angular.js.  I'm attempting to integrate the "angular-app" bootstrap template for Angular which heavily breaks out Angular modules into specific files.  I.e. instead of a "services.js" file, the template calls for a "app/common/services/restService.js".  This works great when you're using Node.js and you have grunt to combine and minify all of your files.  

However, since I'm not using Node.js, I am eagerly seeking some ideas on how to solve the problem of importing each and every JavaScript file.  I have looked into using Play's RequireJS support but it is falling short for me, since I am worried it is going to affect JavaScript routes, and further complicate and already confusing project organization (at least for me).

What would be best is a way to combine all of the JavaScript files (say, underneath "app/assets/") into one.  However, I will use RequireJS if I absolutely have to.

Thanks for any suggestions you might have.

Martin Grotzke

unread,
Aug 5, 2013, 3:37:35 AM8/5/13
to play-fr...@googlegroups.com
Have you seen https://github.com/typesafehub/angular-seed-play?

It's a nice starting point for angular (+ require.js) + play integration.

Cheers,
Martin
> --
> You received this message because you are subscribed to the Google
> Groups "play-framework" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to play-framewor...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
inoio gmbh - http://inoio.de
Schulterblatt 36, 20357 Hamburg
Amtsgericht Hamburg, HRB 123031
Geschäftsführer: Dennis Brakhane, Martin Grotzke, Ole Langbehn

signature.asc
Reply all
Reply to author
Forward
0 new messages