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

use https://rails-assets.org for javascript dependencies #3

Open
nwoetzel opened this issue Jul 13, 2016 · 3 comments
Open

use https://rails-assets.org for javascript dependencies #3

nwoetzel opened this issue Jul 13, 2016 · 3 comments
Assignees

Comments

@nwoetzel
Copy link
Member

here is a nice overview on how one can manage javascript dependencies in rails:
https://www.codefellows.org/blog/5-ways-to-manage-front-end-assets-in-rails
Currently, it is done by adding gems, where there are such available; if there is no gem available, they are copied into app/assets
Assets that are copied are currently and could be handled in the Gemfile like:

# javascript assets from https://rails-assets.org
gem 'bundler', '>= 1.8.4'
source 'https://rails-assets.org' do
  gem 'rails-assets-bxSlider', '~> 4.1.1'
  gem 'rails-assets-cytoscape', '~> 2.0.0'
  gem 'rails-assets-underscore', '~> 1.8.3'
end
@nwoetzel
Copy link
Member Author

for the datatables.net javascript library, this is already done:

# javascript assets from https://rails-assets.org
gem 'bundler', '>= 1.8.4'
source 'https://rails-assets.org' do
  gem 'rails-assets-datatables.net-jqui', '~> 1.10.0'
  gem 'rails-assets-datatables.net-buttons-jqui', '~> 1.2.0'
end

@nwoetzel
Copy link
Member Author

added also

  gem 'rails-assets-bxslider-4', '~> 4.1.0'
  gem 'rails-assets-underscore', '~> 1.8.3'

@nwoetzel
Copy link
Member Author

Not all dependencies are available as bower packages, e.g. JSME. Currently, it is part of the repository and will need to be updated in here.
There is one solution I have found, that can download almost anything:
https://github.com/3ofcoins/vendorificator
This could be a better alternative compared to adding things to the repository

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

No branches or pull requests

2 participants