0.0
No commit activity in last 3 years
No release in over 3 years
This is assets helper for rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

< 6.0, >= 4.0
 Project Readme

assets_rails

Requirements

Compatible

Install

in Gemfile

  gem 'assets_rails'

Usage

add config/application.rb

config.assets.paths << Rails.root.join('node_modules') # if use npm
config.assets.paths << Rails.root.join('bower_components') # if use bower
config.assets.components = %w(npm bower) # if use npm and bower

example for npm

npm init -y
npm install bootstrap --save

example for bower

bower init -y
bower install bootstrap --save

Capistrano 3 Configuration

namespace :assets_rails do
  desc 'Install assets and resolve assets'
  task :install do
    on roles(:web) do
      within release_path do
        execute :rake, 'assets_rails:install assets_rails:resolve RAILS_ENV=production'
      end
    end
  end
end
before 'deploy:compile_assets', 'assets_rails:install'

Contributing

  1. Fork it ( https://github.com/8398a7/assets_rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request