Sha256: 01dd38c89b5ca9526fa71d0281cc0329116a3be998851fcff0a5fe59153bb11b

Contents?: true

Size: 548 Bytes

Versions: 14

Compression:

Stored size: 548 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 :build => :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:build'].invoke
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sewing_kit-0.7.1 lib/tasks/sewing_kit.rake
sewing_kit-0.7.0 lib/tasks/sewing_kit.rake
sewing_kit-0.6.2 lib/tasks/sewing_kit.rake
sewing_kit-0.6.1 lib/tasks/sewing_kit.rake
sewing_kit-0.6.0 lib/tasks/sewing_kit.rake
sewing_kit-0.5.8 lib/tasks/sewing_kit.rake
sewing_kit-0.5.7 lib/tasks/sewing_kit.rake
sewing_kit-0.5.6 lib/tasks/sewing_kit.rake
sewing_kit-0.5.5 lib/tasks/sewing_kit.rake
sewing_kit-0.5.4 lib/tasks/sewing_kit.rake
sewing_kit-0.5.3 lib/tasks/sewing_kit.rake
sewing_kit-0.5.2 lib/tasks/sewing_kit.rake
sewing_kit-0.5.1 lib/tasks/sewing_kit.rake
sewing_kit-0.5.0 lib/tasks/sewing_kit.rake