Re: [AngularJS] Re: Angular 2 and Rails 5, asset pipeline or no?

2016-01-04 Thread Amrit Kahlon
At this point I'm completely ignoring the rails asset pipeline. On Friday, January 1, 2016 at 6:31:51 PM UTC-8, Vincent Zhu wrote: > > Cool, share some my confusions with you. ;-) > how do you use template if not using gulp? simply inline template? > Also, how do you handle the rails asset pipel

Re: [AngularJS] Re: Angular 2 and Rails 5, asset pipeline or no?

2016-01-04 Thread Amrit Kahlon
Not quite, I load them in on compilation. See this answer: http://stackoverflow.com/a/34458571/1624255 I also wrote this gulp plugin to load the sass as well: https://www.npmjs.com/package/gulp-angular2-embed-sass On Friday, January 1, 2016 at 6:31:51 PM UTC-8, Vincent Zhu wrote: > > Cool, shar

Re: [AngularJS] Re: Angular 2 and Rails 5, asset pipeline or no?

2016-01-01 Thread Vincent Zhu
Cool, share some my confusions with you. ;-) how do you use template if not using gulp? simply inline template? Also, how do you handle the rails asset pipeline? like do you use asset_path ? On Saturday, January 2, 2016 at 10:10:54 AM UTC+8, Amrit Kahlon wrote: > > Yep that's what I ended up do

Re: [AngularJS] Re: Angular 2 and Rails 5, asset pipeline or no?

2016-01-01 Thread Amrit Kahlon
Yep that's what I ended up doing, except with gulp. Cheers On Jan 1, 2016 5:56 PM, "Vincent Zhu" wrote: > 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 Thur

[AngularJS] Re: Angular 2 and Rails 5, asset pipeline or no?

2016-01-01 Thread Vincent Zhu
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 an