linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 83 forks source link

How-to guide to integrate lineman into an existing project? #316

Closed justin808 closed 9 years ago

justin808 commented 9 years ago

Does such a guide exist? Or is Lineman only for new projects?

searls commented 9 years ago

We've extracted a bunch of existing projects into Lineman, but because each existing project is such a special snowflake, I'm not sure we have found a general-purpose advice short of "the JS goes here, the CSS goes here", etc.

That said, I recently had a fun experience taking an existing rails app, hitting it in development mode, parsing all the remote scripts & styles it was downloading from the asset pipeline, wget'ing them, and copying those into a lineman project. It turned out to be much much easier to do that than to unwind the ERB and the deeply nested asset gems from the source rails project. But then again, even that was so specific that I'm not sure how I'd abstract it to something more general