Skip to content

Commit

Permalink
update task to process images and fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
doabit committed Mar 31, 2018
1 parent 5b505c1 commit 68014cb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tasks/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize(branch)
def process
# process_stylesheets_assets

# process_images_and_fonts_assets
process_images_and_fonts_assets
# store_version

checkout_repository
Expand All @@ -56,6 +56,17 @@ def choose_version(version)
system %Q{cd '#{paths.tmp_semantic_ui}' && git checkout --quiet #{version}}
end

def process_images_and_fonts_assets
fonts = File.join(paths.tmp_semantic_ui_dist, 'themes/default/assets/fonts', '*')
Dir[fonts].each do |src|
FileUtils.cp(src, paths.fonts)
end
images = File.join(paths.tmp_semantic_ui_dist, 'themes/default/assets/images', '*')
Dir[images].each do |src|
FileUtils.cp(src, paths.images)
end
end

def process_stylesheets_assets
# content = ""
Dir[File.join(paths.tmp_semantic_ui_definitions, '*')].each do |path|
Expand Down

0 comments on commit 68014cb

Please sign in to comment.