# lib/icons.rake

namespace :icons do
  task :compile do
    puts "Compiling icons..."
    puts %x(bundle exec fontcustom compile)
  end
end
# lib/icons.rake

namespace :icons do
  task :compile do
    puts "Compiling icons..."
    puts %x(bundle exec fontcustom compile --force)
    puts "Compiling stylesheets..."
    puts %x(bundle exec npm run compile-sass)    
    puts "Compiling styleguide..."
    puts %x(bundle exec rake css:styleguide)
  end
end
Improve Rake task for Icons compiling
Improve Rake task for Icons compiling

We were only doing the one task to compile icons, but there are a
few that are required and I thought it would be handier to add those
to the rake task so we don't have to do them manually.

Test Plan:
- When you make a change to the fonts and do rake icons:compile it
should now do the following tasks:
  - compile icon font and new icon stylesheet
  - compile our stylesheets to get the new stuff from our template
  - compile the styleguide so we can see it (if we've added it to
  the html markup in our template)

Change-Id: I7d4c0334f5cd96667a7426a3fa32a07c44f03a96
Reviewed-on: https://gerrit.instructure.com/44750
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Ryan Shaw <ea3cd978650417470535f3a4725b6b5042a6ab59@instructure.com>
QA-Review: Colleen Palmer <387ba1943871e60965e6b44638a2f2e1ab9b8469@instructure.com>
Product-Review: Colleen Palmer <387ba1943871e60965e6b44638a2f2e1ab9b8469@instructure.com>
