Sha256: 0b202101c3c8afec2bffd5ccd288943e354ca0a8618809237d3a1c3fc2f0e835
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 Bytes
Contents
require 'bundler/setup' require 'bundler/gem_tasks' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:rspec) desc 'Run the test suite' task :default => :rspec namespace :assets do desc 'Update Foundation for Sites assets' task update: :clean do sh 'bower install' sh 'cp -R bower_components/foundation-sites/js/* vendor/assets/js/' sh 'cp -R bower_components/foundation-sites/scss/* vendor/assets/scss/' manifest = Dir['vendor/assets/js/*.js']. map { |file| "//= require #{File.basename(file, '.js')}" }. sort.join("\n") File.write('vendor/assets/js/foundation.js', manifest) puts 'Now update version.rb' end desc 'Remove old Foundation for Sites assets' task :clean do sh 'rm -rf vendor' sh 'mkdir -p vendor/assets/js/ vendor/assets/scss' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foundation-rails-6.1.1.1 | Rakefile |
foundation-rails-6.1.1.0 | Rakefile |