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

Basic question: how to include a 3rd party library #336

Closed jcalfee closed 9 years ago

jcalfee commented 9 years ago

I have included a 3rd party library in config/files.js but I'm clueless at to how to use it. This library typically returns a value from `require('./lib.js')' which is what I need. How can I use this library in my lineman angular app? thank you... By the way, it is not a library in your recipes...

searls commented 9 years ago

Just drop the script into vendor/js and it will be picked up and concatenated

If the script only works with require.js, you'll have to set that up separately (and I don't know how to do that).

On Wed, Nov 26, 2014 at 4:06 PM, James Calfee notifications@github.com wrote:

I have included a 3rd party library in config/files.js but I'm clueless at to how to use it. This library typically returns a value from `require('./lib.js')' which is what I need. How can I use this library in my lineman angular app? thank you... By the way, it is not a library in your recipes...

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/336

jcalfee commented 9 years ago

Thank you..