Sha256: 8b41d21998df1efc9e1b253130bae79724cdb96fc9448928b85f98ea642e1dab

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

# path to your application root.
APP_ROOT = File.expand_path('..', __dir__)

def system!(*args)
  system(*args) || abort("\n\e[31m== Command #{args} failed ==\e[0m")
end

Dir.chdir(APP_ROOT) do
  puts "\e[36m\n== Running RuboCop static code formatter ==\e[0m"
  system!("bundle exec rubocop -a")

  puts "\e[36m\n== Running Prettier style formatter ==\e[0m"
  system!("pnpm run format")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
practical-pig-1.0.0 lib/template/bin/format