Sha256: 0dafd38c0e6cb3d812c0170e610aa46b6ee87a0762f1ecaea081665c9ddf6a41

Contents?: true

Size: 820 Bytes

Versions: 1

Compression:

Stored size: 820 Bytes

Contents

# frozen_string_literal: true
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 "bundle exec rails generate sewing_kit:install"
  end

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

  namespace :server do
    desc "Starts the production server"
    task start: :environment do
      server = SewingKit::Webpack::Server.new
      server.start
    end
  end
end

if Rake::Task.task_defined?("assets:precompile")
  Rake::Task["assets:precompile"].enhance do
    Rake::Task['sewing_kit:build'].invoke
  end
else
  Rake::Task.define_task("assets:precompile" => %w(sewing_kit:build))
end

Version data entries

1 entries across 1 versions & 1 rubygems

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