Sha256: 61dfedc512670516642e2020188458a29f9cd035b4fe4bdff71d482d7c1ad750

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

begin
  namespace :bake do
    desc 'Format the code'
    task :prettier do
      RakeNBake::Baker.log_step 'Running Prettier'
      format = system('prettier')

      if format
        RakeNBake::Baker.log_passed 'Formatting complete'
      else
        puts
        RakeNBake::Baker.log_warn 'Please run "yarn install"'
        raise
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rake-n-bake-3.1.2 tasks/prettier.rake