Sha256: 9d89935f3208a6857aa740ff59bfcd83a8cb103d0016302fae4f4f2d3a3bbdd3

Contents?: true

Size: 825 Bytes

Versions: 4

Compression:

Stored size: 825 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 "./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

  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

4 entries across 4 versions & 1 rubygems

Version Path
sewing_kit-0.127.0 lib/tasks/sewing_kit.rake
sewing_kit-0.126.0 lib/tasks/sewing_kit.rake
sewing_kit-0.125.0 lib/tasks/sewing_kit.rake
sewing_kit-0.124.0 lib/tasks/sewing_kit.rake