Hi, Amrit I was there. My solution is using npm + tsc + watchify, you will need to write the js code in TS, tsc into js, then use watchify to bundle required npm modules.
On Thursday, December 24, 2015 at 3:19:09 AM UTC+8, Amrit Kahlon wrote: > > What is the best way to set up a project using angular 2 and rails 5? I > was using it with angular 1.5 and typescript before, and had the asset > pipeline setup with the typescript rails gem. It all seemed to work fine. > > Now I'm not quite sure how this systemjs works, or how to use angular 2 > without it. What I'm looking for is all of my angular code somewhere in the > repo, compiling the files into the public folder un-concatenated. Would > this be the best way to do it? Another way I was thinking was have a > development server running as well in a different folder, work on it as two > separate apps, then when it comes time to production, minify all the files > (but not concatenate them) and serve them up in the public folder. > -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
