Sha256: 9e5afc1762720d576285241b51d82413a6d8252a248da3f8e8dc2d2ec6213ca6

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

TEMPLATE_PATH = File.expand_path("../install/template.rb", File.dirname(__FILE__))

namespace :sewing_kit do
  desc "Install all of Shopify’s modern FED tooling"
  task :install do
    exec "./bin/rails app:template LOCATION=#{TEMPLATE_PATH}"
  end

  desc "Build webpack asset bundles"
  task :compile => :environment do
    compiler = SewingKit::Webpack::Compiler.new
    compiler.compile
  end
end

if Rake::Task.task_defined?('assets:precompile')
  Rake::Task['assets:precompile'].enhance do
    Rake::Task['sewing_kit:compile'].invoke
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sewing_kit-0.4.6 lib/tasks/sewing_kit.rake