Sha256: 637c5bf3042b90ada07a7119dd6db82a39db55045d03c473e48880c0652451aa

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

namespace :yarn do
  desc "Install npm packages with yarn"
  task install: :environment do
    sh "yarn install"
  end

  desc "Lint JS/SCSS files using yarn (prettier)"
  task lint: :install do
    sh "yarn lint"
  end

  desc "Autoformat JS/SCSS files using yarn (prettier)"
  task format: :install do
    sh "yarn format"
  end

  desc "Compile js/css"
  task build: :install do
    sh "yarn build && yarn build:css"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katalyst-kpop-2.0.3 lib/tasks/yarn.rake
katalyst-kpop-2.0.2 lib/tasks/yarn.rake
katalyst-kpop-2.0.1 lib/tasks/yarn.rake
katalyst-kpop-2.0.0 lib/tasks/yarn.rake