Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ingest NPM packages?? #249

Closed
andyl opened this issue Apr 6, 2015 · 2 comments
Closed

How to ingest NPM packages?? #249

andyl opened this issue Apr 6, 2015 · 2 comments

Comments

@andyl
Copy link

andyl commented Apr 6, 2015

Some JS utilities only come as NPM packages. (as far as I can tell...) Here's an example - Radium https://github.com/FormidableLabs/radium

For NPM packages like this, I have to manually download the JS to vendor/assets/javascripts. :-(

Couple of questions:

  1. why are some JS libs packaged with bower, and some with NPM?
  2. for NPM packages like Radium, is there a better solution than manual download??

Thanks in advance, and thanks for RailsAssets!

@sheerun
Copy link
Contributor

sheerun commented Apr 6, 2015

It's not possible to consume NPM packages. Rails Assets is only rubygems-bower proxy :)

I guess you can use something like: https://github.com/browserify-rails/browserify-rails

@sheerun sheerun closed this as completed Apr 6, 2015
@andyl
Copy link
Author

andyl commented Apr 7, 2015

I did look into browserify-rails. The config and NPM setup was so complicated I prefer manual download. Thanks again for RailsAssets - very simple and it just works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants