Requiring modules without using Rails asset pipeline


(cpk) #1

Im currently trying to break away the jsapp from the project to use in a cordova app, but the biggest hurdle is the Rails Asset pipeline. I realize that Discourse works really well in browsers, but feel that it is so close to being packaged as a Cordova app, and would be fun to try out.

Separating the client has been brought up here and here

I love the future plans for discourse, but would love to separate the client out from the Rails backend today. Could something like require.js to include all of these dependencies? I have been working with ember-cli and just looking for some guidance on how I would go about doing this. If it is too early, that would be good to know.

Thanks for open sourcing this badass software.