Hi

Digging up an old topic, but there is a way not to rely on your development 
server to be running to serve the `application.js`.
You need a rake task getting all the files "//= require"d in the 
application.js with Sprockets and run karma against a config file
where you inject those required files.

I wrote about it: 
http://sebastien.saunier.me/blog/2014/02/04/angular--rails-with-no-fuss.html 
(Jump to third section)

Hope this helps.

On Monday, April 22, 2013 4:56:06 AM UTC+2, Michael Winser wrote:
>
> My app <http://www.crisply.com> is built using Rails for the back end and 
> a mix of rails views and angular for the front-end.  We serve up a single 
> application.js via sprockets (aka the asset pipeline).
>
> This means that I have to keep the list of js files included in 
> application.js in sync with karma.conf.js.
>
> Has anyone automated this?  I'm imagining an extension to karma that 
> watches application.js and reloads as needed.
>
> Thanks,
>
> Michael
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to