Sha256: b5cbf628c5b6c7181bf2cbd6d699000f985b1b66640e3fef1e2c48d4af6b1857
Contents?: true
Size: 986 Bytes
Versions: 19
Compression:
Stored size: 986 Bytes
Contents
description "Semantic UI for Sass" # Stylesheet importing semantic stylesheet 'styles.scss' # Other Semantic UI assets basedir = '../../app/assets' image_dir = "#{basedir}/images/semantic-ui" javascript_dir = ["#{basedir}/javascripts/semantic-ui", "#{basedir}/javascripts/semantic-ui/behavior"] font_dir = "#{basedir}/fonts/semantic-ui" Dir[File.join(File.dirname(__FILE__), image_dir, '*.png')].each do |file| filename = File.basename(file) image "#{image_dir}/#{filename}", to: "semantic-ui/#{filename}" end javascript_dir.each do |dir| Dir[File.join(File.dirname(__FILE__), dir, '*.js')].each do |file| filename = File.basename(file) to_path = dir.include?('behavior') ? "semantic-ui/behavior/#{filename}" : "semantic-ui/#{filename}" javascript "#{dir}/#{filename}", to: to_path end end Dir[File.join(File.dirname(__FILE__), font_dir, '*')].each do |file| filename = File.basename(file) font "#{font_dir}/#{filename}", to: "semantic-ui/#{filename}" end
Version data entries
19 entries across 19 versions & 2 rubygems